Изменить 'du5/program.c'
This commit is contained in:
parent
3f0adf5b6f
commit
0f7649658a
@ -66,7 +66,7 @@ void Sort_Sname(struct LIS *list,int count){
|
||||
struct LIS ilusion;
|
||||
for(int i=count-1;i<0;i--){
|
||||
for(int j=0;j<i;j++){
|
||||
if(list[j].num==list[j+1].num && strcmp(list[j].sname,list[j+1].sname)>0 ){
|
||||
if(list[j].num==list[j+1].num && strcmp(list[j].sname,list[j+1].sname)<0 ){
|
||||
ilusion=list[j];
|
||||
list[j]=list[j+1];
|
||||
list[j+1]=ilusion;
|
||||
|
Loading…
Reference in New Issue
Block a user