生成された名前でファイルを作成する必要があります。boost::lexical_cast整数を に変換するために使用しますstd::string。パディングゼロで文字列を取得する可能性はありますか; 私にはありません。サポートするものはc++11 toolsすべてありMSVS 2008ます。
例 :
int i = 10;
std::string str = boost::lexical_cast<std::string>(i);
// str = "10"
// expect str = "000010"
ps sprintf の使用はお勧めしません。