算法与数据结构课程设计之学生搭配问题
void Pop(int &info) //出队 {
if(IsEmpty()) {
cout<<"错误!队列为空!
exit(-1);
} else {
info=data[front];//
front=(front+1)%MaxSize;//front }
void GetHead(int &info) //{
if(IsEmpty()) {
cout<<"错误!队列为空!"<<endl; display() //exit (-1);
//return -1;
} else {
info=data[front]; } } };