char str[]="1234"; int a=atoi(str); (2)數字換成字符串,用sprintf.以整型爲例。 char str[10]; int a=1234; sprintf(str,"%d",a);.
確定! 回上一頁