2013年4月22日

摘要: #include using namespace std;class Time{public: Time(int,int,int);//声明结构成员函数 int hour; int minute; int sec; void get_time();};Time::Time(int h,int m,i... 阅读全文
posted @ 2013-04-22 19:22 程序+爱=人生 阅读(157) 评论(0) 推荐(0) 编辑
 
摘要: #include using namespace std;class Box{public: Box(int h=10,int w=12,int len=15):height(h),width(w),length(len){}//声明有默认参数的构造函数,参数初始化表初始化数据成员 int volu... 阅读全文
posted @ 2013-04-22 18:54 程序+爱=人生 阅读(132) 评论(0) 推荐(0) 编辑