1 #ifndef LinBaseDate_
2 #define LinBaseDate_
3 #include <vector>
4 #include <string>
5 #include <LinSpace.H> //可省去
6 namespace LinSpace{
7 class CBaseDate{
8 private:
9 std::vector<char> m_vYear;
10 std::vector<char> m_vMonth;
11 std::vector<char> m_vDday;
12 public:
13 CBaseDate(){}
14 CBaseDate(const std::vector<char> sYear,const std::vector<char> sMonth,const std::vector<char> sDay):
15 m_vYear(sYear.begin(),sYear.end()),m_vMonth(sMonth.begin(),sMonth.end()),m_vDday(sDay.begin(),sDay.end()){}
16 std::vector<char> GetYear(){ return m_vYear;}
17 std::vector<char> GetDay(){return m_vDday;}
18 std::vector<char> GetMonth(){return m_vMonth;}
19 };//end class CBaseDate{
20 } //end namespace LinSpace
21 #endif
//觉得还有点什么问题似的,但又没想出来!