最佳答案:C语言有atoi、atol、atof等库函数,可分别把ASCII编码的字符串转化为int、long、float类型的数字。 头文件:stdlib.h 函数原型:int atoi(const char*