标签:char clu ber 进制 color ring class lib int
itoa(数值,char *buf,进制);
# include <stdio.h> # include <stdlib.h> int main (void) { int num = 100; char str[25]; itoa(num, str, 10); printf("The number ‘num‘ is %d and the string ‘str‘ is %s. \n" ,num, str); return 0; }
标签:char clu ber 进制 color ring class lib int
原文地址:http://www.cnblogs.com/tinaluo/p/7353955.html