Изменить 'du6/program.c'

This commit is contained in:
Pavlo Tverdyi 2020-04-16 15:30:46 +00:00
parent b1b107fb81
commit e98cdabb86

View File

@ -72,6 +72,11 @@ void sort(struct LIS* list,int count){
if(strcmp(min,list[j].fname)>0){
min=list[j].fname;
mini=j;
}
if(strcmp(min,list[j].fname)==0 && strcmp(list[mini].fname,list[j].fname)>0){
ilusion=list[i];
list[i]=list[mini];
list[mini]=ilusion;
}
}
ilusion=list[i];
@ -110,18 +115,4 @@ void print(struct LIS *list,int count,int places){
else{
puts("Ziadne prihlasky");
}
}
}