第11题
来源:互联网 发布:南风捏脸数据网盘 编辑:程序博客网 时间:2024/05/21 20:26
#include <iostream>using namespace std;class Time;class Date {public: Date(int,int,int); friend Time;private: int month; int day; int year; };Date::Date(int m,int d,int y):month(m),day(d),year(y){ }class Time {public: Time(int,int,int); void display(const Date &); private: int hour; int minute; int sec; };Time::Time(int h,int m,int s):hour(h),minute(m),sec(s){ }void Time::display(const Date &d) { cout<<d.month<<"/"<<d.day<<"/"<<d.year<<endl; cout<<hour<<":"<<minute<<":"<<sec<<endl; }int main(){ Time t1(10,13,56); Date d1(12,25,2004); t1.display(d1); return 0;}
0 0
- 第51页第11题
- 第51页第11题
- 第1章 第11题
- 第3章 第11题
- 第一章第11题
- 第11题
- 第11题
- 第11题
- 第11题
- 第11题
- c++第11题
- 第11题
- leetcode第11题
- 第11题 求链表倒数第k个节点
- java基础第11章课后第6题
- leetcode 第11-12题
- 第11题 Reorder List
- 51页第11题
- NFC 学习1 - 规范介绍
- 正确使用HAXM解决Android模拟器运行缓慢的问题
- Struts2配置详解_配置Action
- Java网络编程从入门到精通(32):一个非阻塞I/O的例子
- 06-lucene自定义评分-(分数会很高)和域评分-(查后缀为.txt和.ini)
- 第11题
- 个人google-gson使用总结,JSON的序列化和反序列化
- [安装教程]windows32+apache2.4+mysql5.6+php5.4安装图文啰嗦版
- IE下jquey easyui datagrid 缓存问题
- 3.4
- android 添加快捷方式到桌面
- hdu 1561 The more, The Better
- http报头参数详解
- 有向图邻接表的深度优先遍历