说明: #include #include #include #define max 50 int n; FILE *fp; struct snode{ int data[max]; int top; }s; void Init() //初始化栈 { s.top=-1; } void push(int q) //进栈 { s.top++; s.data[s.top]=q; } int po p() //出栈 { int temp; temp=s.data[s.top]; s.top--; ret
<gangsta21> 上传 | 大小:3kb