diff --git a/du6/program.c b/du6/program.c index 3790ee1..2412dd6 100644 --- a/du6/program.c +++ b/du6/program.c @@ -38,9 +38,9 @@ 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_smrnikov[j][i]=='\n'||pole_smernikov[j][i]==' '||(pole_smernikov[j][i]>='a'&&pole_smernikov[j][i]<='z')||(pole_smernikov[j][i]>='A'&&pole_smernikov[j][i]<='Z')){ continue; } else{