原文:http://zhidao.baidu.com/question/165294435.html

sprintf(str,   "%d ",   iNumber); //把数字转换为字符串了

具体实现:
#include<stdio.h>

void main()
{
 int a=120;
 char b[4];
 sprintf(b,   "%d ",   a); 
 printf("%s\n",b);
}
posted on 2011-06-30 22:49  hotty  阅读(891)  评论(0)    收藏  举报