Oh and by doing I++ during the first part of the while loop. You are saving char in data space one whole saying the top is one so the first data position would be 0 rather than one. Are you meaning...
Type: Posts; User: Lesshardtofind
Oh and by doing I++ during the first part of the while loop. You are saving char in data space one whole saying the top is one so the first data position would be 0 rather than one. Are you meaning...
all push needs to do is increase top as long as it hasn't exceeded the limit. The first statement under the while saves the char into contents. By passing the int into the function and then...
I changed three lines and got it to evaluate properly so you are close. When you figure that out then you'll have to figure out why
()(
would evaluate as true :o)
look at your push statement i think
contents[top++]=i;
does not do what you think it does... just simulate numbers in your head and follow the program this line overwrites what
Passing a global variable to the function?
From what i can tell it would never return true as this will never evaluate as true
if(' (' == ')')
Where are you checking if they are opposing...