dude7788's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 4 (0.02 per day)
- Joined:
- 22-September 12
- Profile Views:
- 181
- Last Active:
Sep 28 2012 01:15 AM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: infix to postfix calculator, implement sin cos and x&y variables?
Posted 27 Sep 2012
Skydiver, on 27 September 2012 - 06:30 PM, said:It would have been good if you had pointed out that only single digits were accepted.
So what is happens if you have '4 + x'? Would it just print out "output: postfix notation 4x+", and not have a followup result line?
It shows a message "invalid output" and then exits, I'm sorry for not including this -
In Topic: infix to postfix calculator, implement sin cos and x&y variables?
Posted 27 Sep 2012
Skydiver, on 27 September 2012 - 05:27 PM, said:Is it meant to be a calculator, or merely a translator?
Given '4 + 12'? is the output supposed to be '16' or is it supposed to be '4 12 +' ?
Have you covered trees yet in your class? If you haven't covered trees, have you covered stacks?
Its a calculator an it uses stacks, and it shows both, the ṕostfix notation and the result,but int can only do it with one digit numbers an example is
input: 4+1
output: postfix notation 41+
Result 5 -
In Topic: Converting and Evaluating Infix, Postfix and Prefix Expressions in C
Posted 22 Sep 2012
Thnx!!
but just one question,in the one with the stack, this only works for displaying the postfix/prefix notation, how would you make the solution of the expression? for example you put 2+4, and this only works to show 2 4 +, but how would you make the actual operation and show the final result, which is 6?
dude7788, on 22 September 2012 - 06:19 PM, said:Thnx!!
but just one question,in the one with the stack, this only works for displaying the postfix/prefix notation, how would you make the solution of the expression? for example you put 2+4, and this only works to show 2 4 +, but how would you make the actual operation and show the final result, which is 6?
I tried by myself editing the code, but I don't really know how to do it, please
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
Friends
dude7788 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
dude7788 has no profile comments yet. Why not say hello?