appointmentbook.h
来自「一个APPOINMENTBOOK程序」· C头文件 代码 · 共 48 行
H
48 行
#ifndef _APPOINTMENT_BOOK_H_
#define _APPOINTMENT_BOOK_H_
#include <string>
using namespace std;
class Date
{
public:
Date();
void Print() const;
int m_iDate;
int m_iMonth;
int m_iYear;
};
class Appointment
{
public:
Appointment();
void Print() const;
Appointment& operator= (const Appointment& clAppointment);
string m_strWhat;
string m_strWhere;
Date m_date;
};
class AppointmentBook
{
public:
AppointmentBook();
void AddAppointment(const Appointment* pAppointment);
void PrintAllAppointments() const;
void PrintAppointmentsForDate(const Date* pDate) const;
private:
void SortAppointment();
Appointment m_clAppointment[100];
int m_iNumAppointment;
};
#endif // _APPOINTMENT_BOOK_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?