diff --git a/du5/program.c b/du5/program.c index f1af489..5cc2045 100644 --- a/du5/program.c +++ b/du5/program.c @@ -72,19 +72,19 @@ int main(){ for(int i =0;iPersonList[j].score){ + if(strcmp(PersonList[i].name,PersonList[j].name)==0){ struct person temp = PersonList[j]; PersonList[j] = PersonList[j+1]; PersonList[j+1]=temp; - c--; + k++; } } } - + k--; printf("Vysledky:\n"); - for(int i =0;i