第三章T10
来源:互联网 发布:freebsd linux 区别 编辑:程序博客网 时间:2024/04/30 14:52
#include <iostream>
using namespace std;
class Date;
class Time
{public:
Time(int,int,int);
friend void display(const Date &,const Time &);
private:
int hour;
int minute;
int sec;
};
Time::Time(int h,int m,int s)
{hour=h;
minute=m;
sec=s;
}
class Date
{public:
Date(int,int,int);
friend void display(const Date &,const Time &);
private:
int month;
int day;
int year;
};
Date::Date(int m,int d,int y)
{month=m;
day=d;
year=y;
}
void display(const Date &d,const Time &t)
{
cout<<d.month<<"/"<<d.day<<"/"<<d.year<<endl;
cout<<t.hour<<":"<<t.minute<<":"<<t.sec<<endl;
}
int main()
{
Time t1(10,13,56);
Date d1(12,25,2004);
display(d1,t1);
return 0;
}
0 0
- 第三章T10
- 第五章t10
- 第五章T10
- sony t10
- t10-6
- T10 DIF
- 小鸡腿U T10 Tokyo2014
- 终于将杨继文版的T10-1弄好了
- 关于RHEL支持T10 PI的情况
- Oracle,emc,emulex联合测试T10
- DIX技术和T10 PI技术
- 第三章第三题
- 第三章第三题
- 第三章第三题
- 卡在了杨继文的T10-1上
- DUEL: A SUCCESSFUL DEBUG IN DOS MODE(T10-2.ASM)
- 剑指offer系列-T10二进制中1的个数
- 网络流24题之T10 餐巾计划问题
- C# DataTable的詳細用法
- 字符串移位包含的问题
- 【Android UI设计与开发】第02期:引导界面(二)使用ViewPager实现欢迎引导页面
- 混合背包(多重背包+完全背包)—— POJ 3260
- 课堂题目
- 第三章T10
- PostgreSQL 的昨天今天和明天
- mtl_supply表
- leetCode刷题——Maximum Depth of Binary Tree
- 第4章 第5题
- 第十一题
- 第三章T11
- TI DSP开发相关资料收集
- Spring对Hibernate事务管理