Loading

摘要: 例子:class A{public: int a; char b;}A temp;cout<<temp.a<<endl;问题1:什么时候会合成出一个default ... 阅读全文
posted @ 2017-04-02 20:28 李正浩 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 特点一:成员公用内存,且按所占内存最大的数据成员分配内存//举例1union A{ char a;//1个字节 int b;//4个字节 char c;//1... 阅读全文
posted @ 2017-04-02 19:42 李正浩 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 整体而言: sort算法在数据量大时采用Quick Sort(快速排序),一旦分段后的数据量小于某个门槛,为避免Quick Sort的递归调用带来过大的额外负担,就改用Inse... 阅读全文
posted @ 2017-04-02 19:31 李正浩 阅读(181) 评论(0) 推荐(0) 编辑
摘要: POD意指Plain Old Data,也就是标量性别(Scalar Types)或传统的C Struct型别。POD型别必然拥有trival constructor/dest... 阅读全文
posted @ 2017-04-02 19:10 李正浩 阅读(176) 评论(0) 推荐(0) 编辑
摘要: SGI STL第一级配置器:templateclass __malloc_alloc_template{...};其中:1.allocate()直接使用malloc(),dea... 阅读全文
posted @ 2017-04-02 19:06 李正浩 阅读(116) 评论(0) 推荐(0) 编辑