Aktualizovat "zsiKOD

This commit is contained in:
Michal Čabra 2019-05-13 09:31:09 +00:00
parent 02253d0d43
commit ce435bad52

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