error C2668: "sqrt": 对重载函数的调用不明确 2 IntelliSense: 有多个 重载函数 "sqrt" 实例与参数列表
#include"stdafx.h"#include<iostream>#include<math.h>usingnamespacestd;intmain(void){i...
# include "stdafx.h"
# include <iostream>
# include <math.h>
using namespace std;
int main(void)
{
int i = 2144;
int b;
b = int (sqrt (i));
cout << b << endl;
return 0;
}
请问这段代码哪里出错了,(要把2144开方后取整输出) 展开
# include <iostream>
# include <math.h>
using namespace std;
int main(void)
{
int i = 2144;
int b;
b = int (sqrt (i));
cout << b << endl;
return 0;
}
请问这段代码哪里出错了,(要把2144开方后取整输出) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询