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