CodePudding user response:
Presence of bosses, save the childrenCodePudding user response:
With the structure arrayCodePudding user response:
#include
#include
#include
using namespace std;
Class stu {//to create a class -- student
Public:
int id;//student id
Int the first [10].
Int second [10].
Int third [10].
Int fourth [10].
Int at fifth [10].//are five courses
//can write a function in the class directly, use this pointer can
Void oep ()
{
//each student's grade point average; Output student id
}
Void MMPS () {
//an average time of each course
}
};
Stu lib.