入栈出栈代码实现以及相关例题.pdfVIP

  • 12
  • 0
  • 约6.79千字
  • 约 7页
  • 2023-04-26 发布于上海
  • 举报
⼊栈出栈代码实现以及相关例题 了解更多栈的知识, #includestdio.h #includeiostream typedef struct node{ int date; node * next; }SeqStack ; SeqStack * init_SeqStack(SeqStack * top){ top=NULL; return top; } int is_Empty(SeqStack * top){ if(top==NULL)return 1; else return 0; } SeqStack * push_Stack(SeqStack * top){ SeqStack * New; New=(SeqStack *)malloc(sizeof(SeqStack)); printf(请输⼊要⼊栈的元素\n); scanf(%d,New-date); New-next=top; top=New; return top; } SeqStack * pop_Stac

文档评论(0)

1亿VIP精品文档

相关文档