typedef struct{
int month;
int day;
int year;
}
//date;
enum sexdef{M,F};
enum appdef{R,S};
class Student{
protected:
char ID[8];
char Name[24];
sexdef Sex;
date Birthday;
date EnrollmentDay;
char Department[24];
char Speciality[24];
char Password[6];
apptdef Application;
appdef GetApplication();
void PutApplication();
void Note(char *Msg);
public:
Student(char *InitID);
~Student();
char *GetID();
char *GetPassword();
boolean VerifyPassword();
void ChangePassword(char *NewPassword,char *OldPassword);
};
//第二个
void Student::Changepassword(char *NewPassword, char *OldPassword);
{
if(OldPassword==Password)
{
Password=NewPassword;
}
}
//第三个
Student Studentobl("98109002");
Student *studentobj=new Student("98109002")