【正文】
tplease input the number of experiment course:\n)。scanf(%d,amp。teacher[j].cour[i].experiment)。printf(\tplease input the number of class(=2):)。scanf(%d,amp。teacher[j].cour[i].class_num)。if (teacher[j].cour[i].class_num2)printf(t terror ! the number of class need more than 2!\n)。if (teacher[j].cour[i].class_num==2)teacher[j].cour[i].total=*(teacher[j].cour[i].theory +teacher[j].cour[i].experiment)。if (teacher[j].cour[i].class_num==3)teacher[j].cour[i].total=2*(teacher[j].cour[i].theory +teacher[j].cour[i].experiment)。if (teacher[j].cour[i].class_num=4)teacher[j]. cour[i].total=*(teacher[j].cour[i].theory +teacher[j].cour[i].experiment)。}}for(j=1。j=N。j++){for(i=0。i=teacher[j].num。i++) {all_total=all_total+teacher[j].cour[i].total。 teacher[j].total=teacher[j].profession*all_total。 teacher[j].reward=30* teacher[j].total。 } all_total=0。}printf(\tDO you want to exit?(y/n)\n)。if(getchar()==39。y39。)main_menu()。}void total_task(){int N。char H。printf(please input teacher39。s id:\n)。scanf(%d,amp。N)。printf(NAME ID TOTAL TASK REWARD\n)。printf(%7s%8d%%,teacher[N].name,teacher[N].id,teacher[N].total,teacher[N].reward)。printf(\tDO you want to exit?(y\n)\n)。H=getchar()。if(H==39。y39。)main_menu()。}