入队出对为什么这样调指针?
void SEQUENCE_QUEUE::InQueue(ELEMTYPE *pe){
queue[rear]=*pe;
rear=(rear+1)%MAXSIZE; //???
}
void SEQUENCE_QUEUE::OutQueue(ELEMTYPE *pe)
{
*pe=queue[front];
front=(front+1)%MAXSIZE; //???
2010-10-22 14:52
2010-10-22 15:44
2010-10-22 15:45
2010-10-25 15:47
2010-10-29 23:32