%02d %03d

strTemp.Format("%02d",m_unEditPosition);

%02d 

输出两位整数,不足两位的前面加0,比如05,06……

%03d 

输出三位整数,不足两位的前面加0,比如005,006……
原文地址:https://www.cnblogs.com/qiwu1314/p/9101326.html