Koniec vstupu
This commit is contained in:
parent
d8944aeaae
commit
cf06b0818f
@ -59,6 +59,10 @@ void ask(struct node* tree){
|
|||||||
}
|
}
|
||||||
char buff[SIZE];
|
char buff[SIZE];
|
||||||
char* r = fgets(buff, SIZE, stdin);
|
char* r = fgets(buff, SIZE, stdin);
|
||||||
|
if(r == NULL){
|
||||||
|
puts("Koniec vstupu");
|
||||||
|
return;
|
||||||
|
}
|
||||||
r = fgets(buff, SIZE, stdin);
|
r = fgets(buff, SIZE, stdin);
|
||||||
if(r[0] == 'a' && tree->left != NULL){
|
if(r[0] == 'a' && tree->left != NULL){
|
||||||
tree = tree->left;
|
tree = tree->left;
|
||||||
|
Loading…
Reference in New Issue
Block a user