472,951 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

infix to postfix conversion in simple C prog language

Does anyone know a simple C program to covert an infix to a postfix expression?plz kindly help!
Jan 3 '08 #1
4 3799
sicarie
4,677 Expert Mod 4TB
Sure, are you having trouble with the logic of how to do that, or implementing it?

PS - please see our Posting Guidelines, especially our How to ask a question section so that you can put everything we need to help you in one post.

Thanks!
Jan 3 '08 #2
Sure, are you having trouble with the logic of how to do that, or implementing it?

PS - please see our Posting Guidelines, especially our How to ask a question section so that you can put everything we need to help you in one post.

Thanks!
I just dont know how to implement it though i knew the logic.
Jan 3 '08 #3
oler1s
671 Expert 512MB
Well, try step 1: get the infix expression. This is something entered by user input right? So the first thing your program has to do is get that expression. Start with that code.
Jan 3 '08 #4
I just dont know how to implement it though i knew the logic.
You just need to go step by step. Write down how you convert infix to postfix step by step and then start writing the code.
You could use a char array to accept the infix expression.

Raghu
Jan 4 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Thumbski | last post by:
Alright basically I just have one simple question. I can code perfectly fine and don't have any problems with the .cpp of the infix class but with my header I can't get anything to work really, any...
30
by: Xah Lee | last post by:
The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations Xah Lee, 2006-03-15 In LISP languages, they use a notation like “(+ 1 2)” to mean “1+2”....
0
by: coolguyjas07 | last post by:
plzzzzzz help me out to run my source code ......... i hav written dis code to convert infix expression to postfix but not getting desired output.... plzzz help me to get correct output.. d source...
4
by: jerstlouis | last post by:
I'm hoping to generate some interest in the Ecere SDK which is the result of many years of software development. With the Ecere SDK, you can: Build Cross Platform GUI Applications: Develop...
35
by: globalrev | last post by:
http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: "Write a program that prints the numbers from 1 to 100. But for...
2
by: zeroeight | last post by:
Hi guys, I'm a newbie here, I just want to seek for help regarding my program. I want to implement an infix to postfix conversion only accepting numbers. Right now, I already debugged the errors...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.