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