摘要: 链表在C/C++中是一种比较重要的数据结构,属于线性表.写了较好理解的代码,方便进行理解和实际的操作,为了方便理解及简化参数,第一个程序将head及,current指针设为全局变量. 1 #include <iostream> 2 using namespace std; 3 4 struct Node 5 { 6 int info; 7 Node *next; 8 }; 9 10 Node *head=NULL;11 Node *current=NULL;12 13 void CreateList()14 {15 head=new Node();16 hea... 阅读全文
posted @ 2013-05-08 23:30 Air Support 阅读(228) 评论(0) 推荐(0) 编辑