Изменить 'du6/program.c'
This commit is contained in:
parent
bc51ccd11f
commit
99a3c95d9d
@ -69,15 +69,15 @@ void sort(struct LIS* list,int count){
|
||||
min=list[i].fname;
|
||||
mini=i;
|
||||
for(int j=i+1;j<=count;j++){
|
||||
if(strcmp(min,list[j].fname)>0){
|
||||
min=list[j].fname;
|
||||
mini=j;
|
||||
}
|
||||
if(strcmp(min,list[j].fname)==0 && strcmp(list[mini].name,list[j].name)<0){
|
||||
ilusion=list[i];
|
||||
list[i]=list[mini];
|
||||
list[mini]=ilusion;
|
||||
}
|
||||
if(strcmp(min,list[j].fname)>0){
|
||||
min=list[j].fname;
|
||||
mini=j;
|
||||
}
|
||||
}
|
||||
ilusion=list[i];
|
||||
list[i]=list[mini];
|
||||
|
Loading…
Reference in New Issue
Block a user