Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <iostream>
- #include <string>
- #include <cstring>
- using namespace std;
- string str_1 = "SONY";
- char sz_1[73] = "_Pictures.";
- ////////////////////////////////////////////////////////////////////
- int main() //
- {
- str_1 += sz_1;
- cout << "1: " << str_1 << endl;
- printf("The length of \"str_1\" = %d \n", str_1.length());
- strcpy(sz_1, str_1.c_str());
- printf( "2: %s \n", sz_1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement