如何在函数中判断传递的对象指向的是哪个类
Three classes A, B and C are shown below:
class A {
public:
virtual ~A() {};
};
class B: public A {};
class C: public B {};
You are to implement a function string verify(A *), such that it return
原创
2013-04-18 18:32:49 ·
675 阅读 ·
0 评论