I am currently having some problem with OOP regarding the Circle class. At this time, I have developed the Implementation and the Specification files to help execute within the main program.
Here's my code:
#include "Circle.h"
#include <iostream>
using namespace std;
int calculateCircle()
{
// Declaring the class and object
Circle cir;
// Running the constructor
Circle();
// Setting up the radius
cir.setRadius(double);
cir.getRadius();
// Get area
cir.getArea();
// Get diameter
cir.getDiameter();
// Get circumference
cir.getCircumference();
// Printing out the values
cout << "Here are the values for your circle";
cout << "The area of the circle is " << cir.getArea() << endl;
cout << "The diameter of the circle is " << cir.getDiameter() << endl;
cout << "The circumference of the circle is " << cir.getCircumference() << endl;
cout << endl;
return 0;
}
The compiler throws a "expected primary expression before 'double'" error on line 15. what could be forcing the compiler to throw this error?