Subj : Re: class declaration help To : borland.public.cpp.borlandcpp From : "detritus" Date : Sat Aug 30 2003 12:11 am thanx Ed. Ed Mulroy [TeamB] wrote in message news:3f4f3df8$1@newsgroups.borland.com... > You can use an incomplete declaration which identifies B as the name of a > class type. > > For instance: > > -------------------- > class B; > > class A{ > public: > A(); > void Print(B b); > int x; > }; > > class B{ > void Multiply(A a); > int r; > }; > > -------------------- > > . Ed > > > detritus wrote in message > > news:3f4f312d@newsgroups.borland.com... > > > > In the following 2 class definitions, the compiler dose not > > recognise that class B exists while compiling class A. Is > > there a simple way around this problem? > > > > class A{ > > public: > > A(); > > void Print(B b); > > int x; > > }; > > > > class B{ > > void Multiply(A a); > > int r; > > }; > > .