){for(inti=0;i<5;i++)grade[i]=grade1[i];}student*next;//next指向下一个学生,构成链表char*outid(){returnid;};char*outsex(){returnsex;};char*outname(){returnname;};doubleoutsum(){doublesum=0;for(inti=0;i<5;i++)sum+=this->outgrade(i);returnsum;...}doubleoutav(){returnthis->outsum()/5;}doubleoutgrade(inti){returngrade[i];};voidintgrade(int);};voidstudent::intgrade(intj)//用于修改学生的成绩{switch(j){case1:cout<<"请输入数学成绩:\n";cin>>grade[0];break;case2:cout<<"请输入英语成绩:\n";cin>>grade[1];break;case3:cout<<"请输入政治成绩:\n";cin>>grade[2];break;case4:cout<<"请输入程序设计基础成绩:\n";cin>>grade[3];break;case5:cout<<"请输入物理成绩:\n";cin>>grade[4];break;}}voidstudent::s()//用于录入学生的信息{cout<<"请输入学号:\n";cin>>id;cout<<"请输入姓名:\n";cin>>name;cout<<"请输入性别:\n";cin>>sex;cout<<"请输入数学成绩:\n";cin>>grade[0];cout<<"请输入英语成绩:\n";cin>>grade[1];cout<<"请输入政治成绩:\n";