Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The array indicates that there is an error in enqueuing and dequeuing the headless pointer in the circular queue.
The array indicates that there is an error in enqueuing and dequeuing the headless pointer in the circular queue.
By the way, is the maximum space of the array m or maxsize in void enqueue (qu *sq, data type E)? If the queue is empty, it will not join the queue, so why do you want to cycle the queue?

I copied it to win_tc and compiled it. Unable to compile data type seq[m]. If you want to compile, you should write # definem5; And the return value of your dequeue algorithm is sq->; Sequ[i](datatype), then why write datatype *dequen(qu *sq) (the first *)? Why did you put sq-& gt;; The rear is equal to m-1;

This is what I don't understand. Please give me your advice.