char a = 'a';
int b = static_cast<char>(a);//语句A
double *c = new double;
void *d = static_cast<void*>(c);//语句B
int e = 10;
const int f = static_cast<const int>(e);//语句C
const int g = 20;
int *h = static_cast<int*>(&g);//语句D
class Base {};
class Derived : public Base {}
Base* pB = new Base();
if(Derived* pD = static_cast<Derived*>(pB)) {}//语句E
Derived* pD = new Derived();
if(Base* pB = static_cast<Base*>(pD)) {}//语句F