火车进站出站排列次序情况.pdfVIP

  • 18
  • 0
  • 约2.2千字
  • 约 4页
  • 2021-08-25 发布于湖北
  • 举报
// 火车进站出站次序问题.cpp : Defines the entry point for the console application. // #include stdio.h #include malloc.h #define STACK_SIZE 20 typedef struct { int stack[STACK_SIZE]; int top; }SqStack; int count 1; bool InitStack(SqStack S) { S.top -1; return true; } bool StackEmpty(SqStack S) { if (S.top -1) { return true; } else return false; } bool ClearStack(SqStack S) { S.top -1; return true; } int StackLength(SqStack S) { return S.top+ 1; } bool GetTop(SqStack S,int e) { if (S

文档评论(0)

1亿VIP精品文档

相关文档