VC++ 怎么编打印SN000001到SN005000,一次打印SN000001。第二次打印SN000002以此类推

2024-12-22 02:18:52
推荐回答(1个)
回答1:

CString strSn = "";
for ( int i = 0; i < 5000; i++ )
{
strSn.Format("SN00%04d",i+1);
}