摘要: 有了以上基础思想,接下来引入规则,就直接上例子告诉你怎么做,理解到这感觉就够了,内部具体怎么实现的能力有限,也不能回答,接下来以下面例子为例: #include<iostream> #pragma pack(4) using namespace std; class A { public: char 阅读全文
posted @ 2020-06-29 19:13 sunshine_gzw 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 先看如下代码: #include<iostream> using namespace std; class Base1 { public: }; class Base2 { public: char ch; }; class Base3 { public: int ch; }; class Base 阅读全文
posted @ 2020-06-29 13:30 sunshine_gzw 阅读(276) 评论(0) 推荐(0) 编辑