Link to home
Start Free TrialLog in
Avatar of Dks3504
Dks3504

asked on

convert infix to postfix

Need 3 files to complete a program to convert infix math notation to postfix. Need a calculator.cpp,queue_ch.cpp & a main function to test the program. Have sent via e-mail 7 additional files that should go with the 3 needed above.see e-mail sent from Dst6809343@aol on 1/23.Can use the test.cpp file as a model for main function. Thank you for your assistance
Avatar of Dks3504
Dks3504

ASKER

notify how i can purchase additional points.
We cannot provide answers to school assignments.  That is grounds for removal from this site.  (for both you and the experts involved.)  We can provide only limitied help in accademic assignments.    We can answer specific (direct) questions, like you might ask your teacher.  We can review your work and post suggestions, again, like your teacher might do.

Do you have specific questions?
Do you have any work on this (incomplete even) that we can review?
Avatar of Dks3504

ASKER

This is not a school assignment. I resent your threats. You know nothing about the background on this program. I have done a large amount of work on this program. I have already given 200 points to a dominic. I added another 25. I still have not had my question answered. I sent additional files in an effort to provide assistance. If you cannot assist please submit the question to someone else. You may call me if you have a problem with this question at 1-888-467-7549
at 1-888-467-7549.
Sorry, it certainly sounded like a school assignment.  Professional programmers wouldn't usually ask such a question.

If you are asking for help from a particular expert on this (I can't tell if that is the case), then you should put that expert's name in the question.  That will keep other expoerts away.  If you want help form any expert, you will need to supply more information.
I have an apqueue.h if your interested...not sure what calculator.cpp is; there is a math.h that will do many kinds of math functions...please be more specific on what you need.
Maybe I'm being naive, and I'm certainly new around here but,
isn't this the kind of thing that a lex-yacc-bison style BNF
grammar is perfect for ?
Avatar of Dks3504

ASKER

To nietod: Thank you for your follow up comments. I hope we can still be friends. Assistance on this program can come from any expert. Thanks also to Silecer & Scotch for your reply to my program. This program is very difficult. That is why I came to experts exchange to obtain assistance from knowlegdeable programmers. That is why I sent 7 files that are part of my work so far. I have already released 200 points to dominic on this program. He provided some answers but without the other header and source files that need to go with program. To respond to Silencer question on calculaor.cpp file. This is the critical file to this program. The header file calculator.h is correct. So the implementation file is what I seek assistance with. If this helps: For the Infix to Postfix conversion process, the Calculator class is designed to have a StackOfChar object to facilitate the process. The class also has a QueueOfChar object for buffering the resulting Postfix expression. In the function to evaluate the Postfix(which is stored in queue), use an object of a StackOfDouble class to facilitate the evaluation process. If you have additional questions please respond. Thank for any assistance.
Avatar of ozo
those of us who haven't seen calculaor.cpp and calculator.h may have some difficulty providing much assistance.
right, that's why I said if you want help from experts other than dominic, you need to supply us with more info.  
Avatar of Dks3504

ASKER

To nietod & ozo: Please read previous e-mails for files that should go with conversion program. These files should be correct with the exception of calculator.cpp and queue_ch.cpp. Have provided some code on these 2 files but is not correct. Will e-mail these 2 files again for your review to qna@experts-exchange.com. To ozo, in my previous comments I attempted to explain the calculator.cpp file. This program uses stacks to pop and push infix notation. Uses calculator.cpp to convert infix notation to postfix and then makes use of queues to store the converted notation. A main function is used to test the program.
1) I really wouldn't know how to get to these e-mails. We really need related source files.
2) What exactly do you need help on. Only infix -> prefix conversion.

my mail:
qfm@oce.nl

infix -> postfix I mean.
ASKER CERTIFIED SOLUTION
Avatar of KangaRoo
KangaRoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial