2020-12-24
#include<stdio.h>#define max 100#define N 5typedef struct qwe{ int aaa[max]; int top; } qwe;qwe s;qwe init_stack(qwe s) { s.top=0; }int push(qwe s,int e) { if(s.topmax-1) { printf(“栈满,无法输入\n”); } else { s.top++; s.aaa[s.top]=e; } return 0
复制链接