Ok, so I am trying to re learn c++ and the first thing I wanted to do was make a simple class for a circle (calculate the area and circumference of the circle). When I tried to compile it I get this error:
11 conversion from `Circle*' to non-scalar type `Circle' requested
And I don't know what that means.
Here is the code it was complaining about:
#include <iostream>
#include "Circle.h"
using namespace std;
int main(){
double radius = 0.0;
cout << "Enter a radius\n";
cin >> radius;
Circle circle = new Circle(radius);
cout << "The circumference of the cirle is: " << circle.calcCircumference() << ". The area of the circle is: " << circle.calcArea() << endl;
return 0;
}
Thanks