jeudi 11 août 2016

How to use class which defined below?

class A{
 public:
 B b;
};

class B{
 public:
 A a;
};

I can't write in A class "B b" because class B defined below. Is any way to make it work?

thanks

Aucun commentaire:

Enregistrer un commentaire