CString转string以及int转string
int转string:
添加头文件#include <sstream>
string str;
int j=0;
stringstream str_j;
str_j << j;
str=str_j.str();
CString转string:
CString str_C=_T("test");
string str= (char*)CW2A(str_C.GetBuffer());
原创
2021-05-27 18:13:45 ·
150 阅读 ·
0 评论