1:
CString str;
str.Format("%d",i);
2:
std::ostringstream os;
os << i;
CString cstr_temp = os.str().c_str();
2 包含头文件 #include <sstream>
CString str;
str.Format("%d",i);
2:
std::ostringstream os;
os << i;
CString cstr_temp = os.str().c_str();