c/c++课的作业合集,都是很简单的文件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
465 B

#ifndef WORK20220325_DATE_H
#define WORK20220325_DATE_H
#include <string>
class Date {
private:
int year;
int month;
int day;
public:
Date(int year, int month, int day);
Date() = delete;
Date(const Date &date);
int getYear() const;
int getMonth() const;
int getDay() const;
void setDate(int year, int month, int day);
std::string toString() const;
};
#endif //WORK20220325_DATE_H