예제 #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();
}
예제 #2
0
int main()
{
	Count C;
	++C;
	++C;
	++C;
	C.display();
}