From 48284dcb27ea9e537781e4c1b0a550f782f4b52b Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Mon, 29 Nov 2021 18:15:32 +0000 Subject: [PATCH] a2 --- a2/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a2/program.c b/a2/program.c index cc00790..127228d 100644 --- a/a2/program.c +++ b/a2/program.c @@ -27,14 +27,14 @@ int main(){ int x = 0; - scanf("%[^\n]", string); + //scanf("%[^\n]", string); strcpy(BB, string); int i = 0; while (1){ - if( BB[i] == '[' || BB[i] == '(' || BB[i] == '{' || BB[i] == '<'){ + if( BB[i] != '[' || BB[i] != '(' || BB[i] != '{' || BB[i] != '<'){ pushStack(&stack, BB[i]); BB[i] = ' ';