#include <stdlib.h> double atof(const char *nptr);// 使用这函数必须引入 <stdlib.h>,否则会出现奇怪的错误, 建议编译的时候加警告: gcc -o -g -Wall 15 15.c