Initialization
This commit is contained in:
parent
c41cfff2f5
commit
f7d3b9a17e
@ -51,15 +51,15 @@ int main() {
|
|||||||
// Sort the applications alphabetically
|
// Sort the applications alphabetically
|
||||||
qsort(applications, accepted_count, sizeof(char *), compare_names);
|
qsort(applications, accepted_count, sizeof(char *), compare_names);
|
||||||
|
|
||||||
printf("Prijati studenti:");
|
printf("Prijati studenti:\n");
|
||||||
for (j = 0; j < count && j < accepted_count; j++) {
|
for (j = 0; j < count && j < accepted_count; j++) {
|
||||||
printf("%s\n", applications[j]);
|
printf("%s\n", applications[j]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (count > accepted_count) {
|
if (count < accepted_count) {
|
||||||
printf("Neprijati studenti:");
|
printf("Neprijati studenti:");
|
||||||
for (j = accepted_count; j < i; j++) {
|
for (; j < i; j++) {
|
||||||
printf("%s\n", applications[j]);
|
printf("%s\n", applications[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user