1 Star 0 Fork 0

刘定邦/Disk-based B+ Tree

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Date.h 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
刘定邦 提交于 2021-05-06 15:44 . Upload
//
// Created by Nick Liu on 2019/11/22.
//
#ifndef SOFTWARE_LIBRARY_DATE_H
#define SOFTWARE_LIBRARY_DATE_H
#include <string>
#include <iostream>
using std::string;
using std::istream;
using std::ostream;
class Date {
private:
int year;
int month;
int day;
bool isLeapYear(int) const;
public:
Date();
explicit Date(int, int, int);
int getYear() const;
int getMonth() const;
int getDay() const;
bool isLeapYear() const;
bool setYear(int);
bool setMonth(int);
bool setDay(int);
bool setDate(int, int, int);
friend bool operator ==(const Date&, const Date&);
friend bool operator !=(const Date&, const Date&);
friend bool operator <(const Date&, const Date&);
friend bool operator >(const Date&, const Date&);
friend bool operator <=(const Date&, const Date&);
friend bool operator >=(const Date&, const Date&);
friend ostream& operator <<(ostream&, const Date&);
friend istream& operator >>(istream&, Date&);
string toString() const;
};
#endif //SOFTWARE_LIBRARY_DATE_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/vierundsechzig/bptree_disk_based.git
git@gitee.com:vierundsechzig/bptree_disk_based.git
vierundsechzig
bptree_disk_based
Disk-based B+ Tree
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385