64,637
社区成员
发帖
与我相关
我的任务
分享
#include<iostream.h>
#include<stdio.h>
#include<iostream.h>
#include<stdio.h>
class EXP
{
public:
int a;
int b;
char c;
int d;
void showme(){printf( "in EXP now\r\n ");}
static void get(){cout<<"aa"<<endl;}
};
void main()
{
((EXP *)0)->showme();//强制转换
reinterpret_cast<EXP *>(2)->showme();//强制转换
EXP::get();//直接调用静态成员函数
}