https://blog.csdn.net/u010003835/article/details/47665847
https://blog.csdn.net/vir_lee/article/details/80645066
strtol函數:用于由十進制轉化到2~36的其他進制。函數原型為:long int strtol(const char *nptr,char **endptr,int base);?
還應該注意的是,函數的返回值最大是long int 。所以要轉化的數,超過了這個范圍的話,就不適用了。其中第二個參數必須傳入的是一個指針,用于存儲轉化過程中的非法字符。
itoa()函數:用于2~36的字符串轉換到十進制的數。函數原型為:char*itoa(
int
?value,
char
*string,
int
?radix);?