C?????GCC???????????????
???????????? ???????[ 2016/11/10 11:41:48 ] ????????.NET ??? ?????
?????????????????е??????????????????
???????????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()???????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
C?????????????????????C?????????????C?????????????malloc??realloc????C??????????????8?????????C??????const?????ü?????C?????Ч????????????????C?????????C????д???????????????????????C????????λ?????C??????define???????÷??????C???????pthread???????C???????????????C????λ????ü??????????C???????????????????C?????з????????????????????????C?????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????