摘要: #include using namespace std; class Time { public: Time(){minute=0;sec=0;} Time(int m,int s){minute=m;sec=s;} Time operator++(); Time operator++(int); void display(){cout=60) { sec-=60; ++minute; } return *this; } Time Time::operator ++(int) { Time temp(*this); sec++; if(sec>=60... 阅读全文
posted @ 2013-10-11 02:30 pangbangb 阅读(271) 评论(0) 推荐(0) 编辑