使用Boost Format库实现sprintf和CString的Format功能;
#include "boost/format.hpp"
using namespace boost;
int _tmain(int argc, _TCHAR* argv[])
{
format fmt("%1%.jpg");
fmt %1 ;
string s = fmt.str();
cout << s << endl;
return 0;
}
使用Boost Format库实现sprintf和CString的Format功能
最新推荐文章于 2022-09-26 16:59:03 发布