Re: C++ a little help please.
From: Chris \( Val \) (chrisval_at_bigpond.com.au)
Date: 12/13/03
- Next message: Gary Labowitz: "Re: Where to put user interface"
- Previous message: Chris \( Val \): "Re: C++ a little help please."
- In reply to: Thomas Matthews: "Re: C++ a little help please."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 14 Dec 2003 03:28:58 +1100
"Thomas Matthews" <Thomas_MatthewsSpitsOnSpamBots@sbcglobal.net> wrote in message
news:yonCb.5332$Zu5.4184@newssvr33.news.prodigy.com...
| Chris ( Val ) wrote:
|
| > "lightning_b0lt" <lightning(removeme)1974(andme)@hotmail(andme).com> wrote in message
| > news:brag9i$81k$1@hercules.btinternet.com...
[snip]
| > Why do I think it is better I hear you say ?
| [snip]
| Hmm, is there always room for making it "better"?
There is always room for improvement ;-).
| > # include <iostream>
| > # include <ostream>
| My understanding is that ostream is included by iostream.
Now this is something I would really like to see a chapter
and verse from the standard please :-).
My understanding is that the standard makes no such
guarantee at all.
>From what I understand, I believe implementors are free to
have headers include other headers(which may even include
others), in order to make tie the whole thing together.
| > const char Menu()
| template <class ResponseType>
| Menu()
:-) - take it easy - the OP has a way to go yet <G>.
[snip]
| Table Driven. See my other posts and replies on this topic.
As I stated in my earlier response, I agree with you in general,
but I don't think the OP is ready for that as yet.
In addition to what you've stated, I kind of like the idea
of a common abstract base class menu object, where I can
derive menu' and sub menu' from it, pushing them all back
into a 'vector<Menu*>'.
You could quite easily employ add and remove methods, print
sub menu', etc..., while providing dynamic menu' at runtime
from a file, for example.
Cheers.
Chris Val
- Next message: Gary Labowitz: "Re: Where to put user interface"
- Previous message: Chris \( Val \): "Re: C++ a little help please."
- In reply to: Thomas Matthews: "Re: C++ a little help please."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|