数据结构(十) 链队列的基本操做 ----入队列,出队列,判断队列是否为空

//链队列的基本操做 #include <iostream> using namespace std; //节点的结构体 struct Node { int data; struct Node *next; }; //队列的结构体 struct queue { struct Node * front; struct Node *rear; }; //队列的初始化操做 void
相关文章
相关标签/搜索