Search:

Type: Posts; User: Lesshardtofind

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,818

    Oh and by doing I++ during the first part of the...

    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...
  2. Replies
    11
    Views
    1,818

    all push needs to do is increase top as long as...

    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...
  3. Replies
    11
    Views
    1,818

    I changed three lines and got it to evaluate...

    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)
  4. Replies
    11
    Views
    1,818

    look at your push statement i think ...

    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
  5. Replies
    11
    Views
    1,818

    Passing a global variable to the function? ...

    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...
Results 1 to 5 of 6