用帶頭節點的循環鏈表表示隊列

#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=
相關文章
相關標籤/搜索