# 請問這個要我們寫什麼(c++)

Create a class Rectangular_Solid with attributes length, width, and height, each of which defaults to 1.0. Provide member functions that calculate the perimeter, the area , and the volume of the rectangular solid. Also, provide set and get functions for the length, width, and height attributes. The set functions...
show more
Create a class Rectangular_Solid with attributes length, width, and height, each of which defaults to 1.0. Provide member functions that calculate the perimeter, the area , and the volume of the rectangular solid. Also, provide set and get functions for the length, width, and height attributes. The set functions should verify that length, width, and height are each floating-point numbers larger than 0.0 and less than 100.0. Write a main function to test each member function of the Rectangle object. (Note: the default values of length, width, and height can be initialized by the constructor of Rectangular_Solid.)

請問這個要我們寫什麼程式?

請問這個要我們寫什麼程式?

Follow

1 answer
1

Are you sure you want to delete this answer?