- 21
- 0
- 约 71页
- 2016-12-17 发布于湖北
- 举报
while(QueueNotEmpty(myQueue)==1 StackNotEmpty(myStack)==1) { QueueDelete(myQueue,x); StackPop(myStack,y); if(x!=y) { printf(“不是回文!”); return 0; } } printf(是回文!); return 1; } StackInitiate(qstype *s) { s-top=-1; } int StackPush (qstype *s,elemtype x) { if(s-top=MAXNUM-1) return 0; else { s-stack[++(s-top)]=x; return 1; } } int StackPop (qstype *s,elemtype *y) { *y=s-stack[(s-top)]; (s-top) --; return 1; } int StackNotEmpty (qst
原创力文档

文档评论(0)