Results 1 to 10 of 10

Thread: C Reverse Polish notation expression evaluator

Hybrid View

  1. #1
    Frenzied Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    1,171

    Re: C Reverse Polish notation expression evaluator

    Code:
    value = stk[stk_ptr];
    stk_ptr--;
    becomes:

    Code:
    value = stk[stk_ptr--];
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  2. #2

    Thread Starter
    Fanatic Member BenJones's Avatar
    Join Date
    Mar 2010
    Location
    Wales UK
    Posts
    814

    Re: C Reverse Polish notation expression evaluator

    Quote Originally Posted by 2kaud View Post
    Code:
    value = stk[stk_ptr];
    stk_ptr--;
    becomes:

    Code:
    value = stk[stk_ptr--];
    Thanks updated now

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width