medzera pred nacitavanim ignoruje whitespace

This commit is contained in:
Kamil Gejdoš 2026-04-14 21:29:50 +00:00
parent 586b4d1a42
commit 7363b14b50

View File

@ -46,7 +46,7 @@ void spustac(struct uzol* uzol) {
return;
}
char odpoved; // iacitavam a/n
scanf("%c",&odpoved);
scanf(" %c",&odpoved);
if (odpoved == 'a') {
spustac (uzol -> lavy);
@ -79,23 +79,4 @@ int main() {
destroy_tree(strom);
return 0;
}
}