How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask LogicPro Your Own Question

LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 12561
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
29751445
Type Your Homework Question Here...
LogicPro is online now
A new question is answered every 9 seconds

Write a program in which the driver simply calls a function

This answer was rated:

Write a program in which the driver simply calls a function
named inToPostfix which reads an infix expression from
standard input and writes the equivalent postfix expression
to standard output. The infix expression includes operands,
parentheses, and operators, where the operands are single
lowercase characters, and the operators are +, -, *, /, and
^ (exponentiation).

Use the STL container stack to store a stack of characters.
Include error checks in the code.

Your program should be implemented in a single file.
Hi,
Welcome back.
My name is XXXXX XXXXX I will help you.
What is the deadline?
Customer: replied 3 years ago.

I need it by October 15th at 11 am.

Please check back in 12 hours.

Please bookmark this page / add to favorites to come back later on

Download answer from here: Stack_Infix_to_postfix_CPP.cpp

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.

It will ensure that question is for me.

Please bookmark my profile page:

http://www.justanswer.com/computer/expert-logicpro/

so you can come back and ask me a question anytime.

Remember, if you need anything else, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions at no extra charge and I’m always here to help.

Thank you for using this site!

Customer: replied 3 years ago.

I am using Putty and when I tried to compile it, I got these errors.



infix_to_postfix.cpp: In function ‘int main()’:
infix_to_postfix.cpp:12:17: error: ‘system’ was not declared in this scope
infix_to_postfix.cpp: In function ‘void infix_to_postfix()’:
infix_to_postfix.cpp:30:22: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
infix_to_postfix.cpp:31:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]

I am using Windows and it is working fine here.
Remove the line system("pause") from code and then let me know.
Customer: replied 3 years ago.

I'm still getting these errors now.


 


infix_to_postfix.cpp:29:22: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
infix_to_postfix.cpp:30:20: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]

these are only warnings.
Try to run your program. It should run now.
Customer: replied 3 years ago.

It's working well. But I was wondering if you could explain this part so I can understand what's going on:


char Symbol [5] = {NULL};


char Temp [5] = {NULL};

THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
LogicPro and other Homework Specialists are ready to help you
Hi Shannon,
Just following up with you to see how everything is going and if you have more questions for me.
You can ask me again using "For LogicPro only" at the start of your questions like you do to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
http://www.justanswer.com/homework/expert-logicpro/
so you can come back and ask me a question anytime.
If you need any additional information on this answer, please don't hesitate to ask by clicking on 'Reply to Expert', and I will reply as soon as possible.
I hope you found the information in my answer helpful, and if so, please let me know, here. Thank you!
Thanks very much for using Just Answer!
Best wishes
LogicPro

Related Homework Questions