摘要: #include "stdafx.h"#include //不要遗漏 否则不能使用coutusing namespace std;class Time{public : Time();// 自定义了构造函数 那么必须默认写一个空的构造函数 Time(int h,int m ,int s); void setTime(int hour,int min,int sec); void printMilitary(); void printStandard();private: int hour; int min; int sec;};Time:... 阅读全文
posted @ 2013-10-07 20:16 cart55free99 阅读(228) 评论(0) 推荐(0) 编辑