10 2017 档案

摘要:1 #ifndef _TREE_H_ 2 #define _TREE_H_ 3 //此类用shared_ptr来管理节点内存,所以要包含<memory>头文件,不需要手动释放内存 4 #include <memory> 5 #include <iostream> 6 7 using namespac 阅读全文
posted @ 2017-10-17 17:05 黑马网仔 阅读(247) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-10-12 01:40 黑马网仔 阅读(972) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-10-10 23:39 黑马网仔 阅读(238) 评论(0) 推荐(0) 编辑
摘要:自己用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; 阅读全文
posted @ 2017-10-10 20:19 黑马网仔 阅读(275) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示