Home > Back-end >  Object-oriented c student management system, curriculum design results show not to come out, ask bos
Object-oriented c student management system, curriculum design results show not to come out, ask bos

Time:09-18


Int main ()
{

Course * c;
College a (0), b (1);
Int k [10];
int i;
To:
Cout<" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n "& lt; Cout<" 1.0 * * welcome to use the student achievement management system \ n "& lt; Cout<" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n "& lt; Cout<" * please select a feature list * \ n "& lt; Cout<" * 1. Data entry functions * \ n "& lt; Cout<" * 2. Query function * \ n "& lt; Cout<" * 3. The delete function * \ n "& lt; Cout<" * 4. Sorting * \ n "& lt; Cout<" * 5. The output and end * \ n "& lt; Cout<" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n "& lt; Cout<" Please enter the option "& lt; Cin> i;
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; Cin> K [0];
If (k [0]==1)

{
Cout<" 1-2 - student id query name query 3 - dormitory number query "& lt; Cin> K [1];
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; Cin> K [2];
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; A. d. isplay ();
CoutCout<" Student id number, course name credit grades experimental results have been comprehensive achievements obtained knowledge credits "& lt; B.d isplay ();
Goto to;
}
return 0;
}

CodePudding user response:

  • Related