你好,#include #include // 应用头文件,用到了 atoi函数。main(){ char str[] ="13.67"; double dstr; dstr=atof(str); printf("%f\n",dstr);}