home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!nuscc!ntuix!gthkoh
- From: gthkoh@ntuix.ntu.ac.sg (Koh Thong Hwee)
- Subject: Re: Multiple Header Files Problem
- Message-ID: <1992Nov5.043646.23706@ntuix.ntu.ac.sg>
- Organization: Nanyang Technological University - Singapore
- X-Newsreader: TIN [version 1.1 PL6]
- References: <1d9b9mINNmrj@im4u.cs.utexas.edu>
- Date: Thu, 5 Nov 1992 04:36:46 GMT
- Lines: 38
-
- Lance W. Bledsoe (lwb@cs.utexas.edu) wrote:
- : In article <1992Nov03.133949.21465@rs6000.bham.ac.uk> pickerig@eee.bham.ac.uk (Mr. G. Pickering) writes:
- :
- : class B; // add this line
- :
- :
- : >: class A
- : >: {
- : >: public
- : >: ...
- : >: B* pB;
- : >: void foo();
- : >: };
- :
- : >: void A::foo()
- : >: {
- : >: pB = new B(this);
- : >: }
- :
- : >: class B
- : >: {
- : >: public
- : >: ...
- : >: A* pParentA;
- : >: inline B(A* pA) {pParentA = pA};
- : >: };
- : --
- : +------------------------------------------------------------------------+
- : | Lance W. Bledsoe lwb@im4u.cs.utexas.edu (512) 258-0112 |
- : | Avalon Technical Services, Inc. Contract Software Engineer |
- : +------------------------------------------------------------------------+
-
-
- Thanx to Guy and Lance for the tips. I really needed the pointer...
-
-
- TH Koh
-
-