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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment