This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
尊敬的所有人:
我包含了标头 stdlib.h 并使用了函数 atof()
但是、编译器无法识别变量 double 的类型。
我错过了什么?
我使用的是 controlSUITE 中的示例。
此致、
Barry
尊敬的 Gautam:
我发现我忘记在字符串上添加""的问题。
浮点32温度;
更换
温度= atof(1.23);
使用
temp = atof("1.23");
可以解决问题。
此致、
Barry