Aktualizovat „du5/program.c“
This commit is contained in:
parent
b6c2b8eee8
commit
943d605c48
@ -66,7 +66,7 @@ int main(){
|
|||||||
|
|
||||||
int flag=0;
|
int flag=0;
|
||||||
qsort(PersonList,c,sizeof(struct person),comp_num);
|
qsort(PersonList,c,sizeof(struct person),comp_num);
|
||||||
printf("Vysledok\n");
|
printf("Vysledky:\n");
|
||||||
for(int i =0;i<c;i++){
|
for(int i =0;i<c;i++){
|
||||||
res_strcmp = strcmp(PersonList[i].name,PersonList[i+1].name);
|
res_strcmp = strcmp(PersonList[i].name,PersonList[i+1].name);
|
||||||
if(res_strcmp!=0){
|
if(res_strcmp!=0){
|
||||||
|
Loading…
Reference in New Issue
Block a user