enum
means 'enumerated type' and it's not supposed to be changed and should be fixed. For example, a studnet is either a male or female, there is no third possibility. It's a good idea to use
enum
in this case:
enum StudentType {
STUDENT_TYPE_MALE,
STUDENT_TYPE_FEMALE,
};
class StudentInfo {
string name;
string fathername;
string surname;
StudentType type; };