本文主要是介绍static stringstream 的问题 static std::stringstream 左操作,只第一次能成功!,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
//vs 2017, windowsvoid 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;
这篇关于static stringstream 的问题 static std::stringstream 左操作,只第一次能成功!的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!