摘要: #include class A{public: virtual void print() { coutprint();}void printS(A &a){ a.print();}void main(){ A a,*pa,*pb,*pc; B b; C c; pa=&a; pb=&b; pc=&c; a.print(); b.print(); c.print(); pa->print(); pb->print(); pc->print(); print(a); print(b); print(c); print(pa); print(pb); 阅读全文
posted @ 2013-08-20 07:46 Air Support 阅读(188) 评论(0) 推荐(0) 编辑