This commit is contained in:
ccnuktd 2021-12-14 11:34:14 +08:00 committed by GitHub
parent 388564c9d9
commit fe3fb9c07d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,17 @@ class A
* long b
* 根据字节对齐4+4=8+8+8=24
*/
/**
* 非作者本人
* char a
* int b
* short a
* long b
* 在32位机器底下根据字节对齐应该为char = 1对齐后为4int = 4short = 2对齐后为4long = 4
* 总和应该为16
*/
class B:A
{
public: