• 2021-04-14
    Status SymmetryString(char* p){
    Queue q;
    if(!InitQueue(q)) return 0;
    Stack s;
    InitStack(s);
    ElemType e1,e2;
    while(*p){

    Push(s,*p);

    EnQueue(q,*p);

    p++;
    }
    while(!StackEmpty(s)){

    ( )

    DeQueue(q,e2);

    if(e1!=e2) return FALSE;
    }
    return OK;}