| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 7 Sep 1998 16:04:59 +0200 (CET) |
| From: | Miguel Murillo <mmurillo AT ideafix DOT litec DOT csic DOT es> |
| To: | Michiel Uitdehaag <m DOT uitdehaag AT imn DOT nl> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Simple pointer problem |
| In-Reply-To: | <35F3D936.3F3DFD1E@imn.nl> |
| Message-ID: | <Pine.LNX.3.96.980907155733.10204A-300000@ideafix.litec.csic.es> |
| MIME-Version: | 1.0 |
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime AT docserver DOT cac DOT washington DOT edu for more info.
---761590502-188950334-905177099=:10204
Content-Type: TEXT/PLAIN; charset=US-ASCII
> Hi,
>
> I've got these objects of different classes that point at eachother like
> this:
> (first.h)
----------------------
> #ifndef first_h
> #define first_h
//#include "second.h"
class first;
class second;
> class first {
> private:
> second *pt;
> };
> #endif
>
> (second.h)
-----------------------
> #ifndef second_h
> #define second_h
// #include "first.h"
class first;
class second;
class second {
> private:
> first *pt;
> };
> #endif
---761590502-188950334-905177099=:10204
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="first.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT LNX DOT 3 DOT 96 DOT 980907160459 DOT 10204B AT ideafix DOT litec DOT csic DOT es>
Content-Description:
I2lmbmRlZiBzZWNvbmRfaA0KI2RlZmluZSBzZWNvbmRfaA0KICAvLyAjaW5j
bHVkZSAiZmlyc3QuaCINCiAgY2xhc3MgZmlyc3Q7DQogIGNsYXNzIHNlY29u
ZDsNCmNsYXNzIHNlY29uZCB7DQogcHJpdmF0ZToNCiAgICAgZmlyc3QgKnB0
Ow0KIH07DQojZW5kaWYNCg0K
---761590502-188950334-905177099=:10204
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="second.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT LNX DOT 3 DOT 96 DOT 980907160459 DOT 10204C AT ideafix DOT litec DOT csic DOT es>
Content-Description:
I2lmbmRlZiBmaXJzdF9oDQojZGVmaW5lIGZpcnN0X2gNCiAgLy8jaW5jbHVk
ZSAic2Vjb25kLmgiDQogIGNsYXNzIGZpcnN0Ow0KICBjbGFzcyBzZWNvbmQ7
DQpjbGFzcyBmaXJzdCB7DQogcHJpdmF0ZToNCiAgICAgc2Vjb25kICpwdDsN
CiB9Ow0KI2VuZGlmDQoNCg==
---761590502-188950334-905177099=:10204--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |