第四题完成
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user