Queue/CircularQueue.c
int enQueue(Queue* Q, int data) {
    if (isFull(Q)) {
        return 0;
    } else {
        Q->data[Q->rear] = data;
        Q->rear = (Q->rear + 1) % MAXSIZE;
        return 1;
    }
}
/**
 * enqueue
 * @param Q the pointer of queue
 * @param data the data you want to enqueue
 * @return success flag
 */
enqueue
@param Q the pointer of queue
@param data the data you want to enqueue
@return success flag
enqueue @param Q the pointer of queue @param data the data you want to enqueue @return success flag
int enQueue(Queue* Q, int data) {
    if (isFull(Q)) {
        return 0;
    } else {
        Q->data[Q->rear] = data;
        Q->rear = (Q->rear + 1) % MAXSIZE;
        return 1;
    }
}
int enQueue ( Queue * Q , int data ) { if ( isFull ( Q ) ) { return 0 ; } else { Q -> data [ Q -> rear ] = data ; Q -> rear = ( Q -> rear + 1 ) % MAXSIZE ; return 1 ; } }
enqueue
 @param Q the pointer of queue
 @param data the data you want to enqueue
 @return success flag
enqueue @param Q the pointer of queue @param data the data you want to enqueue @return success flag