stringstream ss;
ss << setfill('0') << setw(10) << i;
vstrImageFilenames[i] = strPrefixLeft + ss.str() + ".png";
stringstream ss;
ss << setfill('0') << setw(10) << i;
vstrImageFilenames[i] = strPrefixLeft + ss.str() + ".png";
《c++ 构造名字不足的0补齐.doc》
下载本文的Word格式文档,以方便收藏与打印。