Click here to Skip to main content
15,887,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opening an MFC Application in Splitter Pane Pin
David Crow1-Nov-04 6:34
David Crow1-Nov-04 6:34 
GeneralCalculator Using Stacks Pin
civicnar1-Nov-04 5:54
civicnar1-Nov-04 5:54 
GeneralRe: Calculator Using Stacks Pin
David Crow1-Nov-04 6:38
David Crow1-Nov-04 6:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 6:53
civicnar1-Nov-04 6:53 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:37
John M. Drescher1-Nov-04 7:37 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:41
John M. Drescher1-Nov-04 7:41 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 7:57
civicnar1-Nov-04 7:57 
GeneralRe: Calculator Using Stacks Pin
David Crow1-Nov-04 8:31
David Crow1-Nov-04 8:31 
civicnar wrote:
Do you still have the source code?

Not readily. It was 15 years ago. Before, I graduated, I printed out every project and homework assignment that I ever worked on. Filled up a large binder! I consulted it a few times since, but that binder is tucked away in a box someplace.

My first question is do you have the infix-to-postfix part of the code working? In other words, do you have code that will convert

a + b * c + (d * e + f) * g ----> a b c * + d e * f + g * +

In general, when an operand is read, it is immediately placed onto the output. Operators are not immediately output, so they must be saved onto the stack. Left parenthesis are also placed onto the stack. If a right parenthesis is encountered, pop and output symbols from the stack until the corresponding left parenthesis is encountered. If an operator is encountered, pop symbols up to a symbol with lower priority.

Here is at least one example found at CP.


"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow


GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:38
Joaquín M López Muñoz1-Nov-04 8:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:49
civicnar1-Nov-04 8:49 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:52
civicnar1-Nov-04 8:52 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:57
Joaquín M López Muñoz1-Nov-04 8:57 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:03
civicnar1-Nov-04 9:03 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 9:26
Joaquín M López Muñoz1-Nov-04 9:26 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:32
civicnar1-Nov-04 9:32 
QuestionHow to Start MFC App with arguments Pin
nonothing1-Nov-04 5:38
nonothing1-Nov-04 5:38 
AnswerRe: How to Start MFC App with arguments Pin
GKarRacer1-Nov-04 5:58
GKarRacer1-Nov-04 5:58 
GeneralRe: How to Start MFC App with arguments Pin
David Crow1-Nov-04 6:41
David Crow1-Nov-04 6:41 
AnswerRe: How to Start MFC App with arguments Pin
Michael Dunn1-Nov-04 8:08
sitebuilderMichael Dunn1-Nov-04 8:08 
QuestionHow to hook system API under win9x? Pin
jedyking1-Nov-04 5:32
jedyking1-Nov-04 5:32 
GeneralThe Focus of a modeless dialog2 Pin
si_691-Nov-04 5:26
si_691-Nov-04 5:26 
GeneralRe: The Focus of a modeless dialog2 Pin
Jim Crafton1-Nov-04 6:15
Jim Crafton1-Nov-04 6:15 
GeneralRe: The Focus of a modeless dialog2 Pin
valikac1-Nov-04 7:37
valikac1-Nov-04 7:37 
GeneralThe Focus of a modeless dialog Pin
si_691-Nov-04 5:25
si_691-Nov-04 5:25 
GeneralEdit control beeps on Esc or Tab keys Pin
Jim Crafton1-Nov-04 5:25
Jim Crafton1-Nov-04 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.