STL的string类如何实现CString的Format功能?+STL中将int转换为string
这是一个经典问题,记住
#include<sstream>
std::CString itos(int arg)
{
std::ostringstream buffer;
buffer << arg; // send the int to the ostringstream
return buffer.str(); // capture the CString
}