用带头节点的循环链表表示队列

#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; typedef struct LNode{ int data; struct LNode *next; }LNode; void enqueue(LNode *&rear,int x) { LNode *s; s=
相关文章
相关标签/搜索