Initialization
This commit is contained in:
parent
f06f7126b3
commit
6c24ae9803
@ -40,10 +40,13 @@ int main() {
|
||||
num_accepted++;
|
||||
}
|
||||
num_students++;
|
||||
|
||||
// Check if we have reached the maximum number of accepted students
|
||||
if (num_accepted == max_students) {
|
||||
break; // Exit the loop
|
||||
}
|
||||
}
|
||||
|
||||
names[num_accepted][0] = '\0';
|
||||
|
||||
qsort(names, num_accepted, sizeof(char*) * NAME_SIZE, compare_names);
|
||||
|
||||
if (num_accepted == 0) {
|
||||
@ -56,4 +59,4 @@ int main() {
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user