#include "A.h" #include "B.h" #include using namespace std; void A::add( B &b ) { A::b = &b; } void A::print() { cout << "A here" << endl; b->print(); }