标签:
1
2
3
4
5
6
7
8
9
10
11
|
class A { public : int m_a; }; class B { public : int m_b; }; class C : public A, public B {}; |
1
2
|
C c; printf ( "%p, %p, %p" , &c, reinterpret_cast <B*>(&c), static_cast <B*>(&c)); |
标签:
原文地址:http://www.cnblogs.com/liyulong1982/p/5951662.html