Oprava otazok
This commit is contained in:
parent
ec62517a4a
commit
55dad663a4
@ -57,7 +57,11 @@ void ask(struct node* tree){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
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;
|
||||||
|
}
|
||||||
while(r[0] == '\n'){
|
while(r[0] == '\n'){
|
||||||
r = fgets(buff, SIZE, stdin);
|
r = fgets(buff, SIZE, stdin);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user