2016年1月15日

Max-heap && Min-heap && push_heap

摘要: 最大堆:make_heap(vi.begin(),vi.end())#include #include #include using namespace std;int main(){ int ia[9] = {0, 1, 2, 3, 4, 8, 9, 3, 5}; make_heap(... 阅读全文

posted @ 2016-01-15 20:00 `Elaine 阅读(378) 评论(0) 推荐(0) 编辑

Plain Old Data (POD)

摘要: Plain Old Data (POD)POD指的是这样一些数据类型:基本数据类型、指针、union、数组、构造函数是 trivial 的 struct 或者 class。 POD用来表明C++中与C相兼容的数据类型,可以按照C的方式来处理(运算、拷贝等)。非POD数据类型与C不兼容,只能按照C++... 阅读全文

posted @ 2016-01-15 10:02 `Elaine 阅读(2956) 评论(0) 推荐(0) 编辑

导航