#include #include #include "counted.h" using namespace std; void f(); int main() { f(); cout << "There are " << counted::count() << " objects.\n"; return EXIT_SUCCESS; } void f() { counted a = 10; counted b = 20; counted c = b; cout << "There are " << a.count() << " objects.\n" << "There are " << b.count() << " objects.\n" << "There are " << c.count() << " objects.\n" << "There are " << counted::count() << " objects.\n"; }