Atom和Visual Studio代码中的pow函数问题

问题描述

代码如下:

#include<stdio.h>

#include<math.h>

int main()

{

double a,b;

printf("Enter number one:");

scanf("%lf",&a);

printf("Enter number two:");

scanf("%lf",&b);

double result = pow(a,b);

printf("The result is for (%lf^%lf): %lf\n",b,a,result);

}

在原子中: enter image description here

在 Visual Studio 代码中: enter image description here

构建消息显示未定义对“pow”的引用
我该如何解决这个问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...