|
n**d 发帖数: 9764 | 2 From "thinking in C++: "The typeid operator always produces a reference to a
static type_info object that describes the dynamic type of the object."
Why the following code output MI? Should it be Mi2? What does "static type_
info object" mean above?
*b2: 2MI
*mip: 2MI
*b1p: 2MI
mi2p not casted
#include
#include
#include
using namespace std;
class B2 {
public:
virtual ~B2() {}
};
class MI : public B2 {};
class Mi2 : public MI {};
void f(B2* &b2p)
{
delete b2p;
b2p |
|
s*****r 发帖数: 43070 | 3 连基本的信用体系都不具备,没有个人支票,信用卡使用者微乎其微
P2P借给谁,如何保证不是骗子,钱贷不出去,还要有快速高回报,就只能搞旁氏骗局 |
|
|