隊列的順序存儲

rear 指向實際的隊列中元素 front指向前一個 當二者相等 相等 空or滿? #include <iostream> using namespace std; #define maxsize 100 typedef int elementtype; struct qnode { elementtype data[maxsize]; int rear; int front; }; typ
相關文章
相關標籤/搜索