int 转换成stringint year = 2014; char t[256]; string s; sprintf(t,"%d",n); s = t; 不丢失数据: sprintf(t,"%lu",n);