字符串拼接
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include <string>
#include <iostream>
using namespace std;
void main() {
string s1("hello");
string s2("world");
string s3 = s1 + s2; //合法操作
cout << s3 << endl;
}
字符串string转char
*char p = s3.data()