To
while(getchar()!='\n');
musis vyhodit uplne prec. Nemozes to za nic nahradit.
Vybrat neplatne znaky musis po tom velkom cykle (ptz vtedy este vies ze co bol posledny nacitany znak), das si tam if(znak!='\n') while(getchar()!='\n');
To
while(getchar()!='\n');
musis vyhodit uplne prec. Nemozes to za nic nahradit.
Vybrat neplatne znaky musis po tom velkom cykle (ptz vtedy este vies ze co bol posledny nacitany znak), das si tam if(znak!='\n') while(getchar()!='\n');