1. http://hi.baidu.com/doking_blog/blog/item/5fd80a139a717159f919b840.html
2. 将int型的数转换成 String :
string to_string(int n)
{
string s="";
while(n)
{
s=char(n%10+'0')+s;
n/=10;
}
return s;
}
【转载】将int型数据转换成任意进制字符串的算法
猜你喜欢
转载自lisai.iteye.com/blog/1664633
今日推荐
周排行