//vs 2017, windows
void MyFun( int a, int b)
{
static std::string strLog;
static std::stringstream ss;
// ss的操作,只第一次能成功!
ss << "a:"<< a<< ";b:" << b;
ss >> strLog;
ss.str("");
strLog.clear();
}
static std::stringstream ss;
ss的 << 操作,只第一次能成功!
ss << "a:"<< a<< ";b:" << b;