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
相關文章
相關標籤/搜索