Изменить 'du6/program.c'
This commit is contained in:
parent
b1b107fb81
commit
e98cdabb86
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user