stacks in c

infix to prefix algorithm wanted

Page 1 of 1

2 Replies - 1425 Views - Last Post: 18 September 2010 - 10:52 PM Rate Topic: -----

#1 prabkotta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-September 10

stacks in c

Posted 18 September 2010 - 10:47 PM

what is the algorithm and c prograion for notation change from infix to prefix and prefix evaluation
Is This A Good Question/Topic? 0
  • +

Replies To: stacks in c

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10390
  • View blog
  • Posts: 38,450
  • Joined: 27-December 08

Re: stacks in c

Posted 18 September 2010 - 10:50 PM

Perhaps you could adapt the Shunting Yard algorithm.
Was This Post Helpful? 0
  • +
  • -

#3 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: stacks in c

Posted 18 September 2010 - 10:52 PM

The general algorithm used is called the Shunting-yard algorithm

It is not specific to C or C++.


Make sure you read the rules and please do not ask for code without showing your own attempts.

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1