
数据结构入门
cx520forever
这个作者很懒,什么都没留下…
展开
-
队列的基本操作
队列(有头结点) #include using 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 · 630 阅读 · 0 评论 -
链表的基本操作
#include using 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 · 571 阅读 · 0 评论