10 2017 档案
摘要:1 #ifndef _TREE_H_ 2 #define _TREE_H_ 3 //此类用shared_ptr来管理节点内存,所以要包含<memory>头文件,不需要手动释放内存 4 #include <memory> 5 #include <iostream> 6 7 using namespac
阅读全文
摘要:1 #ifndef _BLIST_H_ 2 #define _BLIST_H_ 3 4 #include <iostream> 5 6 using namespace std; 7 8 template<class T> 9 class List{ 10 11 private: 12 class N
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef int DataType; 5 6 //比较器 7 int mycmp(const void * a, const void *b); 8 9 //int (*compar)(const v
阅读全文
摘要:自己用C写的list双向链表头文件 1 #ifndef _LIST_H_ 2 #define _LIST_H_ 3 4 #include <stdlib.h> 5 #include <stdio.h> 6 #include <stdbool.h> 7 8 typedef int DataType;
阅读全文