class A { public: int data; A(int d):data(d){} }; class B { public: A s; B(A e):s(e){} }; int _tmain(int argc, _TCHAR* argv[]) { A ins(12); B ins1(ins); return 0; }
A s;
A s(0);
B(A e):s(e){}
:s(e)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)