C语言 回文检测.docVIP

  • 12
  • 0
  • 约2.15千字
  • 约 3页
  • 2018-06-25 发布于河南
  • 举报
C语言 回文检测

#includestdio.h #includemalloc.h #includestdlib.h #define OK 1 #define ERROR 0 #define OVERFLOW -1 #define NULL 0 #define STACK_INIT_SIZE 100//線性表存儲空間的初始分配量 #define STACKINCREMRENT 10//線性表存儲空間的分配增量 typedef int Status; typedef char SElemType; typedef char QElemType; typedef struct{ SElemType *base; SElemType *top; int stacksize; }SqStack; typedef struct QNode{ QElemType data; struct QNode *next; }QNode,*QueuePtr; typedef struct{ QueuePtr front; QueuePtr rear; }LinkQueue; Status InitStact(SqStack S); Status Push(SqStack S,SElemType e); Status plalindrome(char *str); void main() { // SqSta

文档评论(0)

1亿VIP精品文档

相关文档