Изменить 'du5/program.c'
This commit is contained in:
parent
e50b69e903
commit
96ded11786
@ -70,28 +70,18 @@ void Sort_Struct(struct LIS *list,int count){//bubble sort :)
|
||||
}
|
||||
}
|
||||
}
|
||||
if(trcmp(list[i].num,list[j].num)==0 && strcmp(list[i].sname,list[j].sname)==0 ){
|
||||
if(list[i].num==list[j].num && strcmp(list[i].sname,list[j].sname)==0 ){
|
||||
for(int l=0;l<strlen(list[i].fname);l++){
|
||||
if(list[i].fname<list[i+1].fname){
|
||||
ilusion=list[i];
|
||||
list[i]=list[i+1];
|
||||
list[i+1]=ilusion;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
3␣Rebborgma␣Gahvux↵
|
||||
3␣Romak␣Malak↵
|
||||
3␣Kaiye␣Kaiza↵
|
||||
3␣Nemak␣Kohr↵
|
||||
4␣Ariak␣K'ehari↵
|
||||
4␣Myne␣Lajad↵
|
||||
↵
|
||||
*/
|
||||
void print(struct LIS *list,int count){
|
||||
printf("Vysledky:\n");
|
||||
for(int i=0;i<count;i++){
|
||||
|
Loading…
Reference in New Issue
Block a user