关于sizeof 对齐
struct A{ int *c; char b; double a;};
struct A{ int *c; char b; double a;};#include <iostream>using namespace std;int main(){ cout<<offsetof(A,c)<<endl; cout<<offsetof(A,b)<<endl;}