如果我A在C++中有一个指向基类的指针,我怎么能在代码中告诉指针是派生类B还是C?
A
B
C
c++ inheritance pointers class base
base ×1
c++ ×1
class ×1
inheritance ×1
pointers ×1