字符串格式化的问题

I

import

Unregistered / Unconfirmed
GUEST, unregistred user!
:能否用format函数将 不足3位的数前补零?如8->008/12->012
API :int wsprintf(
LPTSTR lpOut, // pointer to buffer for output
LPCTSTR lpFmt, // pointer to format-control string
... // optional arguments
);
%[-][#][0][width][.precision]type
0 Pad the output value with zeros to fill the field width. If this field is omitted, the output value is padded with blank spaces
可以:
例如Format('%.5d',[12]);
 

Similar threads

I
回复
0
查看
538
import
I
I
回复
0
查看
583
import
I
I
回复
0
查看
1K
import
I
顶部