
c
YouthDance
JUST DO IT
展开
-
线性表的单链表实现
玩玩课本的数据结构感觉也还挺好玩的。虽然,理论性很强但是却增加了我的很多学术性的知识,感觉挺有收获的。 /* 线性表的单链表实现插入删除和查找及创建 */ #include #include #include #define ElemType int #define Status bool //-------线性表的单链表存储结构---------- /* 若线性表为原创 2014-04-25 21:21:14 · 2513 阅读 · 0 评论 -
线性表实现插入和删除
/* 线性表实现插入和删除 */ #include #include #include #include #define LIST_INIT_SIZE 100 #define LISTINCRMENT 10 #define ElemType int typedef struct{ ElemType *elem; int length; i原创 2014-04-25 13:45:02 · 2275 阅读 · 0 评论 -
链表的反转
题目:给出一个连续的链表,要求你将其结构改变反转。 例如: 输入:1 2 3 4 5 输出:5 4 3 2 1 #include #include #include typedef struct ListNode{ int m_pKey; ListNode * m_pNext; }; ListNode *ListReverse(ListNode *pHea原创 2014-05-19 14:18:18 · 941 阅读 · 0 评论