18 lines
303 B
C++
18 lines
303 B
C++
//test4.cpp
|
|
#include"LinkQueue.h"
|
|
#include<iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
linkQueue q;
|
|
initQueue(q);
|
|
if (isEmpty(q)) {
|
|
//判断队空
|
|
cout << "此队列为空" << endl;
|
|
}
|
|
enQueue(q, 1); //入队
|
|
cout << deQueue(q) << endl; //出队
|
|
return 0;
|
|
}
|