1sssaaaaaaadsdsddsdsddsddsd
This commit is contained in:
parent
11642eefc0
commit
0c4079124c
@ -49,13 +49,13 @@ void spusti_system(Uzol* root) {
|
||||
}
|
||||
char c;
|
||||
if (scanf(" %c", &c) != 1) {
|
||||
printf("Nerozumiem\n");
|
||||
printf("Koniec vstupu\n");
|
||||
return;
|
||||
}
|
||||
if (c == 'a') akt = akt->left;
|
||||
else if (c == 'n') akt = akt->right;
|
||||
else {
|
||||
printf("Koniec vstupu\n");
|
||||
printf("Nerozumiem\n");
|
||||
return;
|
||||
}
|
||||
if (!akt) { /* ak strom nie je dobre zadaný */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user