(用atoi系列)字符串转化为数字(整型、浮点型)
头文件必须包含 #include<stdlib.h>atof()、atoi()、atol()、strtod()、strtol()、strtoul()
(1)atof
函数 atof() 用于将字符串转换为双精度浮点数(double),其原型为:double atof (const char* str);
atof() 的名字来源于 ascii to floating point nu...
转载
2018-06-07 12:05:38 ·
3421 阅读 ·
0 评论