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); 

相关文章:

  • 2022-03-06
  • 2021-10-17
  • 2021-11-14
  • 2020-04-08
  • 2022-12-23
  • 2021-06-05
  • 2021-10-17
  • 2022-03-09
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2022-02-27
  • 2022-01-07
  • 2022-01-07
  • 2021-11-24
相关资源
相似解决方案