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

📄 date.h

📁 C++编写的学生信息管理系统
💻 H
字号:
//文件名:Date.h
//功能:实现记录职员生日和雇用日期的Date类
#ifndef Date_H
#define Date_H
#include<iostream>
using namespace std;
class Date
{
public:
    Date()
	{
		B_year=0;  B_month=0;  B_day=0;
		E_year=0;  E_month=0;  E_day=0;
	}
	void Date_display()
	{
		cout<<"出生日期为:"<<B_year<<"年"<<B_month<<"月"<<B_day<<"日"<<endl;
		cout<<"雇用日期为:"<<E_year<<"年"<<E_month<<"月"<<E_day<<"日"<<endl;
	}
	void set_Bdate()//设置出生年月
	{
		cout<<"请分别输入出生年月日:";
	    cin>>B_year>>B_month>>B_day;
	}
	void set_Edate()//设置雇用年月
	{
		cout<<"请分别输入雇用年月日:";
		cin>>E_year>>E_month>>E_day;
	}
protected:
	int B_year;   //出生日期
	int B_month;
	int B_day;
	int E_year;   //雇用日期
	int E_month;
	int E_day;
};
#endif

⌨️ 快捷键说明

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