|
|
#2
m21wo2010-10-22 15:44
|
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; //???