- 博客(5)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 [数据结构]Priority_queue(优先级队列)
//.h const int MAX_LEN = 100; template class p_queue { public: p_queue(); bool full(); bool empty(); int size(); void clear(); void insert(const List_entry ¤t); void remove(); void creation();
2016-04-30 22:15:16 425
原创 [数据结构]Radix_sort(MSD)
//.h #include #include"Linked_list.h" #include"Record.h" const int max_char = 28; //分为28组,一组用于放置空,一组用于放置非法字符 class Sortable_list:public List { public: void radix_sort(); private: void ret
2016-04-30 22:13:31 1425
原创 [CSAPP]Bufbomb实验报告
Bufbomb实验报告 实验分析: level 0-3从test开始制执行,通过函数getbuf向外界读取一串内容(buf). Level 4 是通过参数-n,程序执行testn函数,调用getbufn函数向外界读取一串内容(bufn). 实验要求我们通过getbuf读取内容时不检查边界的这一特性,输入过多的内容把栈里面的东西修改掉,使得程序发生预定的错误. 实验给了我们
2016-04-14 19:46:16 16825 7
原创 [数据结构]MyString
//MyString.h #include"List.cpp" class MyString { public: MyString(); ~MyString(); MyString(const MyString ©); MyString(const char *copy); MyString(List©); void operator=(const MyString &
2016-04-14 19:34:49 857
原创 [数据结构]Linked_List
//Linked_List.h enum Error_code {underflow,overflow,range_out,success}; template struct Node { Node_entry entry; Node *next; Node(); Node(Node_entry item, Node *add_on = NULL); }; template class
2016-04-12 14:08:04 685
strcpy的实现问题。。。。
2016-01-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人