🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #116

void * question

#116
From: Bud - Inreach
Date: Sat, 13 Nov 1999 00:00
22 lines
1375 bytes
I've run into a little problem.  I have 3 templated binary sort trees as
private data.  I also have a pointer to the current tree I want to work
with.  I set the current tree via user input.  What I am trying to do is
simply say:

CurrentTree = &MyFirstTree;
CurrentTree->OrderedDisplay();

CurrentTree = &MySecondTree();
CurrentTree->OrderedDisplay;

and so on...

I've tried making CurrentTree a Tree *, and a void *;  Neither of which
worked...

I would appreciate any help..  if you could email me a response I would
appreciate it.

Thanks,

Bill
Technical Details
Message-ID: <382DE1E8.5E28B74@inreach.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4ba,934b7acecdc4904d,start
X-Google-Attributes: gid10d4ba,public
X-Google-Thread: 114592,934b7acecdc4904d,start
X-Google-Attributes: gid114592,public
X-Google-Thread: 108171,934b7acecdc4904d,start
X-Google-Attributes: gid108171,public
From: Bud - Inreach <bud@inreach.com>
Subject: void * question
Date: 1999/11/13
Message-ID: <382DE1E8.5E28B74@inreach.com>
X-Deja-AN: 548260625
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: news.inreach.com 942531151 209.142.44.127 (Sat, 13 Nov 1999 14:12:31 PST)
Organization: InReach Internet
MIME-Version: 1.0
NNTP-Posting-Date: Sat, 13 Nov 1999 14:12:31 PST
Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,alt.lang.c++