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