标签:ret blog front int log style const nbsp div
void queueAdd(const int x) { int k = (rear + 1) % mMaxSize; if (front == k) QueueFull(); else { queue[k] = x; rear = k; } }
int queueDelete() { if (front == rear) { QueueEmpty(); return 0; } front = (front+1) % mMaxSize; return queue[front]; }
标签:ret blog front int log style const nbsp div
原文地址:http://www.cnblogs.com/mycodepqq/p/7501458.html