摘要:
#include #include typedef char ElementType; typedef struct node* LinkStack; struct node { ElementType data; LinkStack next; }; //初始化 void InitLinkStack(LinkStack *L) { (*L) = NULL; } //入栈... 阅读全文
摘要:
#include #include #define MaxSize 10 typedef struct node* SeqStack; typedef char ElementType; struct node { ElementType data[MaxSize]; int top; //标记栈顶数据 }; //初始化 void InitNode(SeqStack *L)... 阅读全文