将数字转换为字符串,且设置为固定长度的,不足补零。
string num2str(int i) { char ss[10]; sprintf(ss,"%04d",i); return ss; }
参考
1.
https://blog.csdn.net/m0_37733057/article/details/79035923
完