Hey everyone I am having trouble getting cmath to work in eclipse neon on my mac
I am getting the function pow is not found.... How do I fix that?
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
int input;
cout << "1. Calculate the Area of a Circle" << endl;
cout << "2. Calculate the Area of a Rectangle" << endl;
cout << "3. Calculate the Area of a Triangle" << endl;
cout << "4. Calculate the Area of a Trapezoid" << endl;
cout << "5. Calculate the Area of a Sphere" << endl;
cout << "6. Exit" << endl;
cout << "Enter your Choice (1-6): " << endl;
cin >> input;
switch (input){
case 1:
const int pi = 3.14159;
int circleRadius;
int circleArea = pi * pow(circleRadius,2);
cout << "Enter the radius of your Circle?" << endl;
cin >> circleRadius;
cout << "The Area of your Circle is: " << circleArea << endl;
break;