View Single Post
Old 04-02-2005, 11:49 AM   #12 (permalink)
cleverest
Registered User
 
Join Date: Mar 2005
Posts: 22
cleverest is on a distinguished road
Quote:
Originally Posted by redhead
Note this is not to be taken as a version I've made for your convenience, you can take a look at my way of handling the user interaction and see if that makes any sence..
Then try and see if you can come up with some clever way of handling it, while taking peeks at my code.

Now this diverts a bit from the orriginal description, which stated there should be functions taking call by value and call by reference, this does not have function calls, which takes call by reference.
But that can be achieved by moving the user interaction into a function by itself, which will take the total as an argument, and fill it with the total value, while returning an int or something simular. This is however left as an exercise for the reader.

The code you have given int his post is very nicely done, I appreciate the attention you've given me on this, and I'll try to study and implement this system of coding into my own later tonight (I work today, argh). How long have you both been doing C++?? I think the only thing that might stump me now is the REFERENCE Function to integrate into this coding, but hopefully with all the help you've given me I'll figure it out quick (and still be able to play with my new PSP this weekend some!)
cleverest is offline   Reply With Quote