摘要:
#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... 阅读全文
2013年4月22日
摘要:
#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... 阅读全文