3.11
来源:互联网 发布:linux上装eclipse 编辑:程序博客网 时间:2024/06/09 19:45
#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
- 3.11
- 3.11
- 3.11
- 3.11
- 3.11
- 3.11
- 3.11
- 【3.11】
- 黄迪明3.11
- 3.3-3.11
- 3.11考试
- 习题3.11
- 3.11回顾
- 12.3.3.11 Throw statements
- thinking in c++ 3.11
- SICP Exercise 3.11
- 3.11 异常与线程
- libsvm-3.11(matlab)
- ubuntu12.04安装vagrant-cf
- 影响国际ERP项目成功的5大因素
- CodeIgniter 源代码解析
- 工作日志4-20
- 重写DatePickerDialog 解决OnDateSetListener只有完成,没有取消回调问题
- 3.11
- epoll的再次认识
- procedure_4
- MapReduce原理小结
- 尝试使用c++ gzlib和java GZIPOutputStream 读写gz压缩文件
- procedure_5
- SpringMVC学习
- Android 关于回调的那些事
- JVM的重排序问题