Aktualizovat „du6/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-16 08:23:17 +00:00
parent a2e7bf1ba3
commit 5c95d6b3b8

View File

@ -95,10 +95,10 @@ int main()
puts("Ziadne prihlasky"); puts("Ziadne prihlasky");
return 0; return 0;
} }
printf("Prijati studenti:\n"); puts("Prijati studenti:");
for(int i = 0+1; i < 1+SIZE; i++){ for(int i = 0+1; i < 1+SIZE; i++){
if(pole_smernikov[i] != NULL){ if(pole_smernikov[i] != NULL){
printf("%s\n", pole_smernikov[i]); printf("%s", pole_smernikov[i]);
} else{ } else{
} }
@ -109,7 +109,7 @@ int main()
if(0 > (SIZE - pm)){ if(0 > (SIZE - pm)){
puts("Neprijati studenti:"); puts("Neprijati studenti:");
for(int i = SIZE+1; i<pm+1; i++){ for(int i = SIZE+1; i<pm+1; i++){
printf("%s\n", pole_smernikov[i]); printf("%s", pole_smernikov[i]);
free(pole_smernikov[i]); free(pole_smernikov[i]);
} }