OJ27


#include <iostream>
using namespace std;
class Date
{public :
    Date(){}
    Date(int h,int m,int s):hour(h),minute(m),second(s){}

   private:
   int hour ,minute,second;

 

};

 

class Time
{public :


  Time(){}
  Time(int y,int m,int d):year(y),month(m),day(d){}


  private:


};

 

void display(const Date &,const Time &)
{


}

 

 

 


int main()


{


    void display(const Date &,const Time &);


    int year,month,day;


    cin>>year>>month>>day;


    Date d1(year,month,day);


    int hour,minute,second;


    cin>>hour>>minute>>second;


    Time t1(hour,minute,second);


    display(d1,t1);


    return 0;


}

 

阅读更多
想对作者说点什么? 我来说一句
关闭
关闭
关闭