3.11
来源:互联网 发布:纪念日软件 编辑:程序博客网 时间:2024/06/18 16:59
#include <iostream>using namespace std;class Time;class Date{public:Date(int ,int ,int);friend Time;private:int day;int month;int year;};Date::Date(int d,int m,int y){ int day=d; int month=m; int 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.day<<" "<<d.month<<" "<<d.year<<endl; cout<<hour<<" "<<minute<<" "<<sec<<endl;}int main(){ Time t(10,13,56); Date d(12,25,2004); t.display(d); 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)
- 传值与传址的区别
- Java线程池使用说明
- Unity3D UGUI之自制定时器(二)
- 使用mapserver上传自己的地图
- 字符设备驱动(一)
- 3.11
- 漫话最小二乘法-1.矩阵表示
- DAO设计模式
- 1PROCESS_INFORMATION 结构
- macbook 工作使用记(一)从安装brew开始
- PHP资源整理
- 蓝桥杯 BASIC-2 01字串
- android NinePatch图片制做
- 转战CSDN