From 8e9a3ac1c11ebdffb204be160785843259ac7db2 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 22 Apr 2022 09:35:15 +0200 Subject: [PATCH] sds --- du6/program.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) 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