求c语言高数编程 输入一个正整数,将其转换成字符串。

日期:2013-04-11 11:29:33 人气:1

求c语言高数编程 输入一个正整数,将其转换成字符串。

#include #include int main (void) { int num=3245; char str[16]={0}; itoa(num,str,10); //itoa,把一个整数转换成字符串,10表示十进制 printf(str); return 0; }
    A+
热门评论