home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15815 < prev    next >
Encoding:
Text File  |  1992-11-04  |  1.3 KB  |  50 lines

  1. Newsgroups: comp.lang.c++
  2. 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
  3. From: gthkoh@ntuix.ntu.ac.sg (Koh Thong Hwee)
  4. Subject: Re: Multiple Header Files Problem
  5. Message-ID: <1992Nov5.043646.23706@ntuix.ntu.ac.sg>
  6. Organization: Nanyang Technological University - Singapore
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. References: <1d9b9mINNmrj@im4u.cs.utexas.edu>
  9. Date: Thu, 5 Nov 1992 04:36:46 GMT
  10. Lines: 38
  11.  
  12. Lance W. Bledsoe (lwb@cs.utexas.edu) wrote:
  13. : In article <1992Nov03.133949.21465@rs6000.bham.ac.uk> pickerig@eee.bham.ac.uk (Mr. G. Pickering) writes:
  14. : class B;    // add this line
  15. : >: class A
  16. : >: {
  17. : >: public
  18. : >:    ...
  19. : >:    B* pB;
  20. : >:    void foo();
  21. : >: };
  22. :  
  23. : >: void A::foo()
  24. : >: {   
  25. : >:    pB = new B(this);
  26. : >: }
  27. :  
  28. : >: class B
  29. : >: {
  30. : >: public
  31. : >:    ...
  32. : >:    A* pParentA;
  33. : >:    inline B(A* pA) {pParentA = pA};
  34. : >: };
  35. : -- 
  36. : +------------------------------------------------------------------------+
  37. : |  Lance W. Bledsoe        lwb@im4u.cs.utexas.edu        (512) 258-0112  |
  38. : |  Avalon Technical Services, Inc.            Contract Software Engineer |
  39. : +------------------------------------------------------------------------+
  40.  
  41.  
  42. Thanx to Guy and Lance for the tips.  I really needed the pointer...
  43.  
  44.  
  45. TH Koh
  46.  
  47.