摘要:
1 #include<iostream> 2 using namespace std; 3 4 class Clock { 5 public: 6 /*----------------------------------构造函数------------------------*/ 7 Clock(int i,int j,int k); // 函数重载 8 Clock() { // 内联函数的隐式表示 9 h=0;10 m=0;11 s=0;12 }13 /*----------------------------------析构函数------------------------* 阅读全文
posted @ 2011-04-14 23:32
左手写诗
阅读(166)
评论(0)
推荐(0)
摘要:
1 //4_1.cpp 2 #includeiostream> 3 using namespace std; 4 5 // 抽象、封装、继承、多态 6 7 class Clock { //时钟类的定义 8 public: //外部接口,公有成员函数 9 void SetTime(in... 阅读全文
posted @ 2011-04-14 00:41
左手写诗
阅读(488)
评论(0)
推荐(0)