This commit is contained in:
mr314ot 2025-11-17 10:03:35 +01:00
parent bfcae1b1dd
commit 3f26ebe4a7

View File

@ -83,12 +83,15 @@ void run_system(Tree *node) {
return;
}
int c = getchar();
int c;
if (c == EOF) {
printf("Koniec vstupu\n");
return;
}
do {
c = getchar();
if (c == EOF) {
printf("Koniec vstupu\n");
return;
}
} while (c=='\n' || c=='\r' || c==' ' || c=='\t');
if (c == 'a') {
run_system(node->left);