Hi everyone so heres my program the problem is that it only allows me to enter my x and y coordinate and then terminates. Heres the directions and the program thanks for looking and Merry Christmas!!!
Directions:Every circle has a radius. Design a class CircleType that can store the x-y coordinates of the center of the circle and the radius. You should include provisions for setting and getting the coordinates of the center of the circle and the value of the radius. CircleType should also have operations for calculating the circumference and the area of the circle. Every cylinder has a base and a height the base is a circle. Design a class CylinderType that can capture the properties of a cylinder and perform the usual operations of a cylinder. Derive this class from the class CircleType. Some of the operations that can be performed on a cylinder are: calculate volume, calculate surface area, set and get the radius and the coordinates of the center of the base. Write a program to test the capabilities of the CircleType and CylinderType.
It doesn't wait because your not telling it to. You're setting x and y with std::cin, which waits for user input.
your setCircumference() and setArea() functions simply compute a value based on other things, and in your main() function you do nothing afterwards.
add these lines between lines 110 and 111
1 2
std::cin.get();
return 0;
However, this solution will not suffice as soon as you mistreat std::cin, take a look here: