Files
data-structures-and-algorithms/homework3/test4.cpp
T
2024-10-24 01:28:26 +08:00

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;
}