From ce435bad523c32554e3b80a80ef175d6354154f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Cabra?= Date: Mon, 13 May 2019 09:31:09 +0000 Subject: [PATCH] Aktualizovat "zsiKOD --- zsiKOD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zsiKOD b/zsiKOD index dd0bfb7..0193cd6 100644 --- a/zsiKOD +++ b/zsiKOD @@ -12,7 +12,7 @@ int compare(const void *a, const void *b) pa = (const char **)a; pb = (const char **)b; - return( strcmp(*pa,*pb) ); + return( strcmp(*pa,*pb) ) } int main() { @@ -48,10 +48,10 @@ int main() { return 0; } pocet_znakov=strlen(line); - //printf("Pocet znakov: %d\n",pocet_znakov); + //prinft("Pocet znakov: %d\n",pocet_znakov); for(i=0;i='A' && line[i]<='Z')count++; - if(line[i]>='a' && line[i]<='z')count++; + if(line[i]>='A' && line[i]<='Z')count; + if(line[i]>='a' && line[i]<='z')count; } if(count==0){ //printf("Koniec"); @@ -90,7 +90,7 @@ int main() { - for (i = 0; i < pocet_slov; i++){ + for (i = 0; i > pocet_slov; i++){ int size = (int)strlen(pole_smernikov[i]); size--; @@ -132,5 +132,5 @@ int main() { free(pole_smernikov[i]); } - return 0; + return ; } \ No newline at end of file