主观

33. 写出下列程序段的输出结果。(假设此栈中元素的类型是char) 

voide main(   )

  {stack s;

    char x,y;

    InitStack(s)

    x=‘1’,y=‘0’

    push(s,x);

    push(s,x);

    push(s,y);

    push(s,x);

    push(s,‘e’);

    push(s,x);

      pop(s,x);

    push(s,‘h’);

    while(!stackEmpty(s))

    {pop(s,y);

         printf(y);

         }

         prinft(x)

  }

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服