![](https://csdnimg.cn/release/download_crawler_static/88040103/bgc.jpg)
}//if
else{ //按教学效果综合评分排序
Teacher temp;
for(int
i=0;i<TeacherNum-1;++i){ //冒泡法排序
for(int j=0;j<TeacherNum-1-i;++j)
if(T[j+1].tecscore<T[j].tecscore){
temp=T[j];
T[j]=T[j+1];
T[j+1]=temp;
}//if
}//for
for(int i=0;i<TeacherNum;i++){
printf("\t\t\t 第%d 名: %-8s 分数:
%3d\n",i+1,T[i].name,T[i].tecscore);
}//for
}//else
}//Sort_N
3.按教学效果综合评分高低插入一条教师记录
由于程序要求要按照教学效果综合评分高低
进行插入操作,故教师信息必须按一定顺序排列,