whenever i compiled the following program this erroe apears ambiguous call to overload function
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int power;
int i=0;
int j=1;
while ((i<=10)&&(j<=11))
{
j=j+1;
i=i+1;
power=pow(int (i), int( j));
cout<<power<<",";
}
return 0;
}
1
Expert's answer
2011-11-03T09:07:26-0400
The problem is that there is not such prototype of pow function which takes two integers as parameters. Instead of writing
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments