摘要:
#include "iostream"using namespace std;typedef struct{ int tail; int head; int q[7];}QUEUE;//队列数据结构定义bool QUEUE_EMPTY(QUEUE &Q){ if(Q.tail==Q.head) return true; else return false;}//判断队列是否已空bool QUEUE_FULL(QUEUE &Q){ if(Q.tail==6&&Q.head==1||Q.tail+1==Q.head) ... 阅读全文