- 博客(1)
- 收藏
- 关注
原创 哈工大c++第一周作业
定义Box(盒子)类,包括:长、宽、高及盒子体积的计算函数。要求在main函数中,创建盒子,计算盒子的体积。 #include <iostream> using namespace std; class Box { private: double length,wide,high; public: void v() { cout<<"The result is:"<<length*wide*high<<endl; } void s
2021-03-22 11:02:03
330
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人