/*
* Copyright (c)2013, 烟台大学计算机学院学生
* All rightsreserved.
* 文件名称: array.cpp
* 作 者: 李中意
* 完成日期:2014 年7月 7 日
* 版本号: v1.0
* 输入描述:无
*/
#include <iostream>
using namespace std;
class Time;
class Date
{
public:
Date(int y,int m,int d)
{
year=y;
month=m;
day=d;
}
friend class Time;
private:
int year;
int month;
int day;
};
class Time
{
public:
Time(int h,int m,int s)
{
hour=h;
minute=m;
second=s;
}
void display(Date &d1)
{
cout<<d1.year<<"/"<<d1.month<<"/"<<d1.day<<endl;
cout<<hour<<":"<<minute<<":"<<second<<endl;
}
private:
int hour;
int minute;
int second;
};
int main()
{
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);
t1.display(d1);
return 0;
}