This commit is contained in:
Michal Utľák 2024-04-22 17:30:43 +02:00
parent ccf621bbd2
commit fc66796acc

View File

@ -27,6 +27,16 @@ int main() {
return 1; return 1;
} }
for (int i = 0; i < pocet_studentov - 1; i++) {
for (int j = i + 1; j < pocet_studentov; j++) {
if (strcmp(pole[i], pole[j]) == 0) {
strcpy(pole[j], pole[pocet_studentov - 1]);
pocet_studentov--;
j--;
}
}
}
for (int i = 0; i < pocet_studentov - 1; i++) { for (int i = 0; i < pocet_studentov - 1; i++) {
for (int j = i + 1; j < pocet_studentov; j++) { for (int j = i + 1; j < pocet_studentov; j++) {