c3
This commit is contained in:
parent
df4b43a5e4
commit
9e3ea964fc
@ -60,8 +60,12 @@ int main(int argc, char const *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if(size==0){
|
||||
if(loaded==0){
|
||||
puts("Ziadne prihlasky");
|
||||
for(int i=0; i<SIZE; i++){
|
||||
free(students[i]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -70,9 +74,12 @@ int main(int argc, char const *argv[])
|
||||
puts("Prijati studenti:");
|
||||
for(int i=0; i<size; i++)
|
||||
puts(students[i]);
|
||||
puts("Neprijati studenti:");
|
||||
for(int i=size; i<loaded; i++)
|
||||
puts(students[i]);
|
||||
|
||||
if(size<loaded){
|
||||
puts("Neprijati studenti:");
|
||||
for(int i=size; i<loaded; i++)
|
||||
puts(students[i]);
|
||||
}
|
||||
|
||||
for(int i=0; i<SIZE; i++){
|
||||
free(students[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user