Int main ()
{
Course * c;
College a (0), b (1);
Int k [10];
int i;
To:
Cout<" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n "& lt;
If (I==1)
{
C=new Course;
C - & gt; The input ();
B.B uild (c);
}
Else if (I==2)
{
Cout<" 1 - the students basic information query 2 - query "& lt;
If (k [0]==1)
{
Cout<" 1-2 - student id query name query 3 - dormitory number query "& lt;
If (k [1]==1)
A.f ind_number ();
Else if (k [1]==2)
A.f ind_name ();
Else if (k [1]==3)
A.f ind_dom_number ();
Goto to;
}
Else if (k [0]==2)
B. ind (a. get_head ());
Goto to;
}
Else if (I==3)
{
A. d. elete_student (b);
Goto to;
}
Else if (I==4)
{
Cout<" 1 - available comprehensive score 2 - take-home credits "& lt;
If (k [2]==2)
B.t axis_credit ();
Else if (k [2]==1)
B.t axis_mark ();
Goto to;
}
Else if (I==5)
{
Cout<" Student id name sex dorm number number "& lt;
Cout
Goto to;
}
return 0;
}
CodePudding user response: