首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
C++_day9am
】的更多相关文章
C++_day9am
dynamic_cast static_cast reinterpret_cast #include <iostream> using namespace std; class A{ public: //动态类型转换只能用于多态继承 virtual void foo(void){} }; class B: public A{}; class C: public B{}; class D{}; int main(void) { B b; A* pa = &b; //B is a A --…