Exemplo n.º 1
0
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();
}
Exemplo n.º 2
0
int main()
{
	Count C;
	++C;
	++C;
	++C;
	C.display();
}