Aktualizovat "zsiKOD

This commit is contained in:
Michal Čabra 2019-05-13 09:55:15 +00:00
parent ce435bad52
commit 7a6e47992d

12
zsiKOD
View File

@ -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);
//prinft("Pocet znakov: %d\n",pocet_znakov);
//printf("Pocet znakov: %d\n",pocet_znakov);
for(i=0;i<pocet_znakov;i++){
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(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 ;
return 0;
}