有了指针,还是不行啊
#include "stdafx.h"#include <windows.h>#include<iostream>using std::cout;using std::endl;class A{ int data; int data2; void fun(){]}};int main(){ A a; char* p =(char*)&a; p->data; return 0;}