Initializacia
This commit is contained in:
parent
a7794811d7
commit
f9bc3d6d6e
@ -49,10 +49,14 @@ void run_tree(struct tree* tree) {
|
||||
printf("%s\n", tree->value);
|
||||
|
||||
char response;
|
||||
if (scanf(" %c", &response) != 1 || (response != 'a' && response != 'n')) {
|
||||
if (scanf(" %c", &response) != 1) {
|
||||
printf("Koniec vstupu\n");
|
||||
return;
|
||||
if else(response != 'a' && response != 'n'){
|
||||
printf("Nerozumiem\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (response == 'a') {
|
||||
run_tree(tree->left);
|
||||
|
Loading…
Reference in New Issue
Block a user