date.h
来自「自己写的date类」· C头文件 代码 · 共 28 行
H
28 行
#ifndef DATE_H_H
#define DATE_H_H
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
class Date
{
private:
int year;
int month;
int day;
public:
Date();
Date(int y,int m,int d);
Date(string sdate);
~Date();
Date(const Date& prim);
void SetDate(string sdate);
void SetDate(int y,int m,int d);
void ShowDate();
void NextDay();
string ToString();
string ToString(int type);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?