1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

InFix to PostFix and PostFix expression evaluation.

Discussion in 'C' started by shabbir, Oct 21, 2006.

  1. sribalaji

    sribalaji New Member

    Joined:
    Oct 6, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    nice.very good
     
  2. nirry4u2004

    nirry4u2004 New Member

    Joined:
    Oct 26, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    texas
    Home Page:
    urgent neeed of program infix to postfix convertion and evaluation using postfix in java using stacks........
     
  3. ron2x

    ron2x New Member

    Joined:
    Dec 15, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    gOod day sir....im new here and i was hOping if i could have an
    answer to my question..im actually a cOmputer engineering student...
    a sophomore but yet still having probs when it comes to programming...

    in this program u made sir...is it possible not to use any brackets?
    if yes how will the program code go now...
    if not why should i or how am suppose to discuss why should every user
    needs to put brackets...

    was hoping not to put any brackets but still the output would be exact and accurate..

    thanks sir...and Godspeed...:D

    TC....
     
  4. sunilkumarsheoran

    sunilkumarsheoran New Member

    Joined:
    Nov 3, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    the problum with postfix solver is not been cured???
     
  5. mohammad xxx

    mohammad xxx New Member

    Joined:
    Jul 17, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello guys please help me, I want the code of the program "evaluation post fix expression" by the language of C + + Example:
    5 3 9 * 6 1 - / + Vicu the final product is equal to 10
    Please help I need to code tonight Thanks for all the
     
  6. Khiine

    Khiine New Member

    Joined:
    Jul 13, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hello there, i think there's something wrong with the code..
    i entered the infix expression

    A+(B*C-(D/E^F)*G)*H

    the output of your code in postfix expression is this:

    ABC*DE^F/G*-H*+ <- is this really correct?..


    think there's a problem with the '^' and '/'..
    im confused now..
    which operator should be executed first?..


    ABC*DEF^/G*-H*+ <- isn't it supposed to be like this?..

    thanks..
     
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    ^ is not supported in the above code.
     
  8. applemanthra

    applemanthra New Member

    Joined:
    Sep 14, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi
    could anyone can post the infix to prefix program using stacks in c++,and this should read the values from Resource File for ex:"values.txt"(the values shold be like
    a 3
    b 2
    c 1
    d 5
    e 4
    f 7
    file and then after getting the postfix expression immediately it should display the total value of the infix/postfix expression...please can anyone help me...im not getting this program...its very very urgent...
     
  9. debabrata

    debabrata New Member

    Joined:
    Sep 27, 2010
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    The program is really nice & as it has been written in C language , it would be easier to understand to all
     
  10. Pepper Mint

    Pepper Mint New Member

    Joined:
    Dec 1, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Philippines
    Hi! I found this article really helpful and I'd like to extend my thanks to you. However, I was wondering if I would like to input numbers more than 9 (i.e 10, 23, 15), how could I possibly accomplish that? I would really be grateful on your response.
     
  11. Jack Hard

    Jack Hard Banned

    Joined:
    Dec 20, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    When I tried to use the expression in these four variables suffix, the output does not come from me.
    For example, * AB + CD +
    can guide
    I'm sorry if I'm wrong
     

Share This Page