Index:
[thread]
[date]
[subject]
[author]
From: Ted Hung <tsh5@duke.com>
To :
Date: Fri, 29 Jan 1999 01:30:01 -0800
Re: Stack
Stacks alone are great for answers that give you constant values every time.
Where it really helps to use an expression tree is when you are using
variables, as we are for this assignment. Take a look at the
example program. Notice that when variable b changes, so does
variable c's value. Thus, these values are not stored as numbers
but actual references to them. Well, I'm even confusing myself, but
that's what I understand of it.
Ted hung
>Hey all, I have a question. I don't know if this is too vague of a
>question, and if answering it is providing too much help and I should
>just figure it out myself, but if you can give me a hint, I would
>appreciate it. I'm just getting really confused trying to use a stack
>and an expression tree. Maybe I'm going about it wrong, but couldn't you
>just use a stack? It seemed pretty clear from the assignment that we
>would have to use an expression tree, but it seems a stack might do the
>trick. Am I going to run into problems that I just am not forseeing
>right now if I use a stack alone? Thanks for any tips. I've been away
>from CPS for almost a year and am having a hard time getting my thought
>process back into it. I really appreciate any tips.
>
>Angel
Index:
[thread]
[date]
[subject]
[author]