[C]C++程序設計第三版第九章 對象數組

9.6  輸入三個立方體體積,用對象數組的方法  #include<iostream> using namespace std; class Box { public: Box(int h =10,int w =12,int len = 15 ):height(h),width(w),length(len){} int volume(); private: int height; int widt
相關文章
相關標籤/搜索