相关代码 |
|
#include class box { public: box(double aa=0,double bb=0,double cc=0) { length=aa; width=bb; hight=cc; V=aa*bb*cc; } void vol() { cout cout } private: double length,width,hight,V; }; int main() { box mybox(1,2,3); mybox.vol(); return 0; }
相关资源 |
|