cout <<a<<" ";
cc.print(); // print 10
i=11; // i has changed so cc.a must change its value too
cc.print(); // should print 11
So basically I want to make CC::a always equal to i but I'm getting error:
D:\C++\sudas\test.cpp uninitialized reference member `CC::a'