Re: C++ a little help please.

From: Chris \( Val \) (chrisval_at_bigpond.com.au)
Date: 12/13/03


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



Relevant Pages

  • Re: C++ a little help please.
    ... Chris wrote: ... template <class ResponseType> ... [snip -- main switch statement] ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Home Networking
    ... I have now found from the pc the laptop however still am having problems ... <SNIP> ... We know that the browser service is running on Computer (such an original name ... Check both Chris and Computer, ...
    (microsoft.public.windowsxp.network_web)
  • Re: can you post anything Mr. Christensen?
    ... Cuba, he wrote back that it was Rudy Rummell. ... You really seem to be reaching here, Chris. ... Lobbying comrade Dan. ...
    (soc.culture.cuba)
  • Re: conditional join?
    ... "Chris2" wrote: ... Chris O. ... I will include the Progress procedure I am using to achieve the results. ...
    (microsoft.public.access.queries)
  • Re: any pointers please? combine words script
    ... [snip - don't parse environmental variables yourself] ... >ugly but i hate repeated code like that sub has. ... >never name a temp, temp. ...
    (comp.lang.perl.misc)