摘要: Date.h#ifndef DATE_H#define DATE_Hclass Date{public: Date(int d=0,int m=0,int y=0);//自定义了构造方法 会覆盖掉默认的无参构造方法 void setDay(int d); void print();private: int d; int m; int y;};#endifDate.cpp#include "stdafx.h"#include #include "Date.h"using namespace std;Date::Date(int d, int m, int 阅读全文
posted @ 2013-10-08 22:59 cart55free99 阅读(224) 评论(0) 推荐(0) 编辑