摘要: #include <iostream>using namespace std; class Node//节点{ public: int data; Node* next; public: Node() :data(0), next(NULL){}}; class List//链表{public: L 阅读全文
posted @ 2016-08-04 19:27 追风筝的恐龙 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 刷了两道题目就刷不动了,编程和理解能力太差了,还是先拿起我数据结构的书慢慢啃,这次借鉴别人的程序,写了个链表,先贴出来,后面会写出自己的链表代码。好像内存没有释放掉。。。。 #include <iostream> using namespace std; class slistNode{public 阅读全文
posted @ 2016-08-04 10:51 追风筝的恐龙 阅读(127) 评论(0) 推荐(0) 编辑