From: Shue-Cheng CHEN Newsgroups: comp.os.msdos.djgpp Subject: How to implement: "A owns P and P depends on A" Date: 11 Jan 1999 09:35:53 GMT Organization: Dept of Civil Engineering, the University of Tokyo Lines: 20 Message-ID: <3699C618.458000B0@ohriki.t.u-tokyo.ac.jp> NNTP-Posting-Host: chen.ohriki.t.u-tokyo.ac.jp Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! If a A class has a P class object data and other data, and, moreover, the state of the P object depends on the state of the A object which it belongs to, whenever I declare a P object then it needs a A object, and vice versa. Since they have to appear ast the same time, this code never passes the compilation. How should I do? Thank you very much! Best Regards, Shue-Cheng CHEN