I have two files, one cpp and one header. I have to report the circle's area, diameter, and circumference after asking the user to input radius. This is the error I get when I compile it:
Make sure you have a definition for every function you've declared in the header file. I don't see definitions for the Circle constructors or the setRadius function in what you've posted.
If you're calculating the circle's various sizes on the fly when the relevant get function is called, do you need to have these data members? Or are you supposed to store the calculated values?
I have made the changes you suggested. However, when I run the program and input the radius, nothing happens. I don't see the area, diameter and circumference. I have called the displayCircleData function as well. Here is my updated code.