https://www.cnblogs.com/curo0119/p/8608606.html
总结:
队空条件:front == rear
队满条件:(rear+1) %QueueSize == front
队列长度:(rear—front + QueueSize) % QueueSize
https://www.cnblogs.com/curo0119/p/8608606.html
总结:
队空条件:front == rear
队满条件:(rear+1) %QueueSize == front
队列长度:(rear—front + QueueSize) % QueueSize