char a[] = "60000"; int b; sscanf(a,"%d",&b); printf("b:%d",b); sprintf(tempChar,"%d", r); 转载于:https://www.cnblogs.com/li-baibo/p/3195053.html