06-02-2010, 04:40 PM
(06-02-2010, 01:17 PM)Psycho Wrote: Cool, now try making a calculator where the user is able to enter an expression and your program will evaluate it. Hint: Use a stack. infix notation, prefix notation.
A lexer and a parser would also help. The kind of calculator described here is actually a good example of a very basic stack based virtual machine.
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.