datelegal.h

来自「自己写的date类」· C头文件 代码 · 共 27 行

H
27
字号
#ifndef DATELEGAL_H_H
#define DATELEGAL_H_H

#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
class DateLegal
{
private:
	int year;
	int month;
	int day;
protected:
	bool is_super_year();
	bool is_big_month();
	bool is_month_2();
public:
	DateLegal(int y, int m, int d);
	void DLsetdate(int y,int m, int d);
	bool year_legal(); 
	bool month_legal();
	bool day_legal();
	bool fine();
};

#endif

⌨️ 快捷键说明

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