Assertion: queue's size | /r/HasProperty | front - rear
Facets:
Source sentences:
text: int CircularQueue :: size() { if(rear >= front) { return (rear - front) + 1; } else { return (SIZE - (front - rear) + 1); } } // the main function int main() { CircularQueue cq; cq.enqueue(10); cq.enqueue(100); cq.enqueue(1000); cout << endl <