在使用vc++6.0编写计算器时开方、乘方怎么表示.在使用vc++6.0编写计算器时开方、乘方怎么表示.例如:赋值 d9为 根号2我试了 double d9=Sqrt(2); 就是不行还显示error C2065:'sqrt' :undeclared identifier就是

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 15:16:56

在使用vc++6.0编写计算器时开方、乘方怎么表示.在使用vc++6.0编写计算器时开方、乘方怎么表示.例如:赋值 d9为 根号2我试了 double d9=Sqrt(2); 就是不行还显示error C2065:'sqrt' :undeclared identifier就是
在使用vc++6.0编写计算器时开方、乘方怎么表示.
在使用vc++6.0编写计算器时开方、乘方怎么表示.
例如:
赋值 d9为 根号2
我试了 double d9=Sqrt(2); 就是不行
还显示error C2065:'sqrt' :undeclared identifier
就是不懂用什么函数

在使用vc++6.0编写计算器时开方、乘方怎么表示.在使用vc++6.0编写计算器时开方、乘方怎么表示.例如:赋值 d9为 根号2我试了 double d9=Sqrt(2); 就是不行还显示error C2065:'sqrt' :undeclared identifier就是
一个是加载头文件问题 ,一个是注意大小写
#include
sqrt(2)