⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 date.h

📁 This file set two employees information and print them out and tell today is whose borthday.
💻 H
字号:
//****************************************************************
// SPECIFICATION FILE (Date.h) 
// This file gives the specification of a Date abstract data type.  
//****************************************************************

class Date
{
  public:
	 void SetDate(/*in*/int y,   // set year
		          /*in*/ int m,  // set month
				  /*in*/ int d); // set day
	 void GetDate();   // print date
     int GetYear();   // print year
	 int GetMonth();  // print month
 	 int GetDay();    // print day
	 Date(/*in*/int initYear,
		  /*in*/int initMon, 
		  /*in*/int initDay); //parameter constructor 
     Date(); // default constructor 
  private:
     int year;
	 int mon;
	 int day;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -