Possible Duplicate:
Convert char array to single int?
如何将 char 数组转换为 uintmax_t? char 数组包含 uintMax_t 值,但采用字符串格式。 谢谢。
最佳答案
您需要使用atoi
或atol
。
关于c++ - 如何将 char 数组转换为 uintmax_t?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14169048/