itoa函数:itoa函数及atoi函数

C语言提供了几个标准库可以将任意类型(整型、长整型、浮点型等)数字转换为串以下是用itoa将整数转 换为串个例子: # stdio.h # stdlib.h void (void) { num = 100; char str[25]; itoa(num, str, 10); prf("The number 'num' is %d and the 'str' is %s. \n" , nu... [阅读全文]
1 共1条 分1页