指针值不同,但它们相等。为什么?[转]

原文 #include < iostream > using namespace std; struct A { int a; }; struct B { int b; }; struct C : A, B { int c; }; int main() { C * c = new C; B * b = c; cout << "The address of b is 0x" << hex
相关文章
相关标签/搜索