Push(S,c);EnQueue(Q,c); //同时使用栈和队列两种结构 }
while(!StackEmpty(S))
{
Pop(S,a);DeQueue(Q,b));
if(a!=b) return ERROR;
}
return OK;
}//Palindrome_Test
Push(S,c);EnQueue(Q,c); //同时使用栈和队列两种结构 }
while(!StackEmpty(S))
{
Pop(S,a);DeQueue(Q,b));
if(a!=b) return ERROR;
}
return OK;
}//Palindrome_Test