About infix to postfist and postfix evaluation

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2009
Posts: 24
Reputation: wil0022 is an unknown quantity at this point 
Solved Threads: 0
wil0022 wil0022 is offline Offline
Newbie Poster

About infix to postfist and postfix evaluation

 
-1
  #1
Oct 3rd, 2009
hi guys.. my teacher told me to do a program for infix to postfix..

and the post fix evaulation..

I just wanna ask what to use, when making a program like this...

example:
input: (a+b*c-d)

output: abc*+d-

is it really possible to input it once?

hehe...

and btw, could you help me debugging if I had made a program?

thanks in advance guys..
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,955
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 283
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: About infix to postfist and postfix evaluation

 
0
  #2
Oct 3rd, 2009
Use a Stack or a Queu. What have you made for yourself so far?
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 147
Reputation: GDICommander is an unknown quantity at this point 
Solved Threads: 19
GDICommander's Avatar
GDICommander GDICommander is offline Offline
Junior Poster

Re: About infix to postfist and postfix evaluation

 
0
  #3
Oct 3rd, 2009
Just post your code if you have problems and we'll check it.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 24
Reputation: wil0022 is an unknown quantity at this point 
Solved Threads: 0
wil0022 wil0022 is offline Offline
Newbie Poster

Re: About infix to postfist and postfix evaluation

 
-1
  #4
Oct 4th, 2009
uhmm... i havent yet.. but i'll make one as soon as i could think of a code..

hehe.. thanks guys.

btw.. what is more simplier... stack or queue?

i have no idea of the two...

our proff discussed it but i like reading in the net than hearing his lessons..

Last edited by wil0022; Oct 4th, 2009 at 2:34 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,955
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 283
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: About infix to postfist and postfix evaluation

 
0
  #5
Oct 4th, 2009
Why do you think your prof mentioned stacks in the first place? Did you listen? If you like reading the net, you probably know there is lots off stuff about this subject. So come on man, get off that silly game you are playing and show us some coding efforts!
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 24
Reputation: wil0022 is an unknown quantity at this point 
Solved Threads: 0
wil0022 wil0022 is offline Offline
Newbie Poster

Re: About infix to postfist and postfix evaluation

 
0
  #6
Oct 4th, 2009
pls be patient sir... im sorry if im too slow..
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,955
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 283
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: About infix to postfist and postfix evaluation

 
1
  #7
Oct 5th, 2009
If you understand the concept of a stack, you are half the way
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 378
Reputation: Ryshad has a spectacular aura about Ryshad has a spectacular aura about 
Solved Threads: 68
Ryshad's Avatar
Ryshad Ryshad is offline Offline
Posting Whiz

Re: About infix to postfist and postfix evaluation

 
1
  #8
Oct 5th, 2009
The point ddanbe was trying to make is that at Daniweb we help those who help themselves :http://www.daniweb.com/forums/announcement61-2.html

Your lecturer would have given you the basic concepts that you need to use, your job is to understand them by reading about them and experimenting with them.

We will gladly help you locate and correct errors in your code, but you need to make a start on your own first , we can't do all the work for you
Please don't take for granted the work that solvers do for you. Take the time to fully understand the code they give you so that you might adapt it to future problems.

"Learning is more than absorbing facts, it is acquiring understanding.” - William Arthur Ward
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 24
Reputation: wil0022 is an unknown quantity at this point 
Solved Threads: 0
wil0022 wil0022 is offline Offline
Newbie Poster

Re: About infix to postfist and postfix evaluation

 
0
  #9
Oct 5th, 2009
thanks guys... im still reading.. I have a copy of stack... but in C.. but i think i could make use of this.. and sorry im too slow.. so noob
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,955
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 283
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: About infix to postfist and postfix evaluation

 
0
  #10
Oct 5th, 2009
Forget about C here! You must learn to think the OO way. Read this
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Reply

Tags
stack

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC