算法訓練 隊列

#include<iostream> #include<string> using namespace std; const int n = 100005; int head, tail; string queue[n]; void enqueue(string name) { queue[tail++] = name;//tail隊尾的後一位 } string dequeue() { ret
相關文章
相關標籤/搜索