i'm getting error: statement cannot resolve address of overloaded function in the line 10, and i dont know why ...
#include <iostream>
#include <cmath>
using namespace std;
int main ()
{
float r, c, a, v;
cout << "Raio: "; endl;
cin >> r;
c = 2 * M_PI * r;
a = M_PI * pow(r,2);
v = 3/4 * M_PI * pow(r,3);
cout << "Valor do comprimento: " << c << endl;
cout << "Valor da area: " << a << endl;
cout << "Valor do volume: " << v << endl;
}
thankss
cout << "Raio: " << endl;
Also - Add M_PI to your declaration of variables:
Last edited on
@techno1
thank you, man, works!