Изменить 'du6/program.c'
This commit is contained in:
parent
bc51ccd11f
commit
99a3c95d9d
@ -69,14 +69,14 @@ 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];
|
||||
@ -115,4 +115,4 @@ void print(struct LIS *list,int count,int places){
|
||||
else{
|
||||
puts("Ziadne prihlasky");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user