int main() { Count counter; cout << "counter.x after instantiation: "; counter.display(); cout << "counter.x after call to friend function setX():"; setX(counter, 8); counter.display(); }
int main() { Count C; ++C; ++C; ++C; C.display(); }