使用Boost Format库实现sprintf和CString的Format功能

使用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功能)