programming/C++
객체출력자
설은
2009. 11. 24. 17:32
ostream& operator<<(ostream& os, Person *p);
ostream& operator<<(ostream& os, Person *p)
{
p->View(os);
return os;
}
virtual void View(ostream& os)=0;
void View(ostream& os);
ostream& operator<<(ostream& os, Person *p)
{
p->View(os);
return os;
}
virtual void View(ostream& os)=0;
void View(ostream& os);