Update a1/program.c
This commit is contained in:
parent
ff87c1ef40
commit
c253ae8605
19
a1/program.c
19
a1/program.c
@ -111,18 +111,21 @@ int main()
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count_stack(&mystack)>0)
|
if(is_ok)
|
||||||
{
|
{
|
||||||
printf("\nMissing closing brackets: ");
|
if(count_stack(&mystack)>0)
|
||||||
do
|
{
|
||||||
{
|
printf("\nMissing closing brackets: ");
|
||||||
|
do
|
||||||
|
{
|
||||||
cs=pop_stack(&mystack);
|
cs=pop_stack(&mystack);
|
||||||
printf("%c", para(cs));
|
printf("%c", para(cs));
|
||||||
}while(count_stack(&mystack)>0);
|
}while(count_stack(&mystack)>0);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
else if(is_ok)
|
else
|
||||||
printf("\nAll brackets OK\n");
|
printf("\nAll brackets OK\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user