hi, im having some problem wih my classes,
class A has an pointer of type B.
and class B has a object of type A.
Code://FILE A.h Class A{ public: B* pb; }; //FILE B.h Class B{ public: A objecta; };
they are in different files, i've tried adding class B; before defining class A but i didnt work, i think because they are in separate files.
posted also in gamedev.



LinkBack URL
About LinkBacks




