#include #include "CounterT.h" using namespace std; int main() { cout << endl; cout << "At the beginning there are " << CounterT::GetTotalInstances() << endl; cout << endl << endl; CounterT::AddInstances(10); cout << "Adding ten instances " << endl; cout << "Now there are " << CounterT::GetTotalInstances() << endl; cout << endl << endl; cout << "ConterT a; " << endl; CounterT a; cout << "Now there are " << CounterT::GetTotalInstances() << endl; cout << "The id of a is " << a.GetId() << endl; cout << "And A thinks there are " << a.GetRealCount() << endl; cout << endl << endl; cout << "CounterT::BlabAboutInstance(a); " << endl; CounterT::BlabAboutInstance(a); return 0; }