?????????????????е??????????????????
???????????node2
????typedef struct node2
????{
????char a;
????int b;
????short c;
????}S2;
????sizeof(S2)=12;
???????????a?????????????????1??#pragma pack(n)?????8??????a?????????1????????1??????????????????????????????0?????4??????
???????????b?????????????????4??#pragma pack(n)?????8??????b?????????4???????????????????????????????????1??1?????????4???????????a???????3?????????????4????????b????4??????
???????????c?????????????????2??#pragma pack(n)?????8??????c?????????2?????????????????????????????????????8????????2??????????c????2??????
??????????????????????1+3+4+2=10???
??????????a??b??c??????????????1??4??2?????4??#pragma pack(n)???????8??????????????С???????4????????10?????????4?????????????????2????12??????洢???£?
????|char|----|----|----|  4???
????|--------int--------|  4???
????|--short--|----|----|  4???
????????12?????
????????node3?????о????????
????typedef struct node3
????{
????int a;
????short b;
????static int c;
????}S3;
??????sizeof(S3)=8.????????а?????????????????????????????λ????????????洢??????(????????C++?н????в?????о????????????C?н??????????????о??????????)??????????д洢??????£?
????|--------int--------|  4???
????|--short-|----|----|    4???
??????????c??????????????????????????siezof???????С???н?c???????????????
??????????node5?????溬?н??????
????typedef struct node5
????{
????bool a;
????S1 s1;
????double b;
????int c;
????}S5;
????sizeof(S5)=32??
???????????a???????????????1??#pragma pack(n)?8????a???????????1?????????1??????????????????????????????0?????1??????
????????s1?????????????????4??????????????????????????????????????????????????????????#pragma pack(n)?8??????s1???????????4??????????????????????????????????1???????4???????????????a???????3????4????????8??????
???????????b?????????????????8??#pragma pack(n)???????8????b???????????8??????????????????????????????????12???????8???????????????s1???????4????16?????b????8??????
???????????c?????????????????4??#pragma pack(n)???????8????c???????????4??????????????????????????????24???????4??????????????c????4??????
????????????????????1+3+8+4+8+4=28????
????????????????????????????????????????1??4??8??4??????8??#pragma pack(n)?????8?????????????С??????8?????????????????????4????32??????洢???£?
????|--------bool--------|    4???
????|---------s1---------|    8???
????|--------------------|    4???
????|--------double------|    8???
????|----int----|---------|    8???
??????????????????????????#pragma pack(n)????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????#pragma pack()???????