数据结构入门
cx520forever
这个作者很懒,什么都没留下…
展开
-
队列的基本操作
队列(有头结点)#includeusing namespace std;typedef struct node{ int data; struct node *next;}node,*point;typedef struct { point front,rear;}listqueue;listqueue Q;bool empty(listqu原创 2013-05-07 23:53:37 · 592 阅读 · 0 评论 -
链表的基本操作
#includeusing namespace std;const int M=30;typedef struct node{ char name[M]; int score; struct node *next;}node,*linklist;linklist L;linklist initlinklist(linklist &L)//初始化{原创 2013-05-07 23:51:13 · 550 阅读 · 0 评论