diff --git a/cv7/program.c b/cv7/program.c index 3901d9e..bdbd126 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -91,19 +91,28 @@ int main(void) { p=p->right; break; } + else if(t==-1) + { + printf("Koniec vstupu\n"); + break; + } else if(t!='\n') { printf("Nerozumiem\n"); t=44; break; } + + }while(1); }while(t!=44); - if(t!=44) printf("Koniec\n"); + if(t!=44&&t!=-1) printf("Koniec\n"); destroy_tree(tr); tr=NULL; return 0; } + +