c++将整数转换为字符串和字符串转化为数字

整数转字符串 1.使用itoa 须要用到的头文件: #include <stdlib.h>ios # include <stdio.h> # include <stdlib.h> void main (void) { int num = 100; char str[25]; itoa(num, str, 10); printf("The number 'num' is %d and the str
相关文章
相关标签/搜索