第四题完成

This commit is contained in:
2024-10-24 01:28:26 +08:00
parent 2a858769de
commit ee55942714
3 changed files with 19 additions and 4 deletions
+8
View File
@@ -5,5 +5,13 @@
using namespace std;
int main() {
linkQueue q;
initQueue(q);
if (isEmpty(q)) {
//判断队空
cout << "此队列为空" << endl;
}
enQueue(q, 1); //入队
cout << deQueue(q) << endl; //出队
return 0;
}