diff --git a/du6/program.c b/du6/program.c index 0a33f73..3790ee1 100644 --- a/du6/program.c +++ b/du6/program.c @@ -37,27 +37,30 @@ int main(){ } } qsort(pole_smernikov, pocet_mien_v_poli, sizeof(char*), compare); + int skip=0; for(int j = 0; j='a'&&pole_smernikov[j][i]<='z')||(pole_smernikov[j][i]>='A'&&pole_smernikov[j][i]<='Z')) + if((pole_smernikov[j][i]>='a'&&pole_smernikov[j][i]<='z')||(pole_smernikov[j][i]>='A'&&pole_smernikov[j][i]<='Z')){ continue; + } else{ - printf(); + printf("Nespravna odpoved\n"); + skip=1; } } } - printf("Prijati studenti:\n"); - for(int i = 0; i