2013年6月8日

一道计算时间的机试题

摘要: 题目大概是这样的:输入两个时间,然后输出这两个时间相加的和。这个实现起来应该很简单,现在想做的是通用版的。那就用类来做吧。废话少说,直接上代码#ifndef __STIME_H#define __STIME_H#include<string>#include <vector>#include <ostream>using std::string;using std::vector;using std::ostream;class STime{public: typedef vector<string>::iterator str_iter;//方 阅读全文

posted @ 2013-06-08 16:09 SandyNie 阅读(264) 评论(2) 推荐(0) 编辑

导航