- CString:MFC字符串
- string:STL字符串
- char *與CString的轉(zhuǎn)換
//char * -> CString
char * p2 = "ccc";
CString str = CString(p3);
//CString -> char *
CStringA tmp;
tmp = str;
char *pp = tmp.GetBuffer();
CString和string之間轉(zhuǎn)換要用char* 做橋梁
string 與 char*的轉(zhuǎn)換 用 .c_str();