- 6
- 0
- 约3.63千字
- 约 10页
- 2018-07-11 发布于上海
- 举报
实验代码:#includestdio.h#includemalloc.h#includestdlib.h#includestring.hchar *pro[][6]={ Te,, ,Te, , , ,+Te, , ,$,$, Ft,, ,Ft, , , ,$,*Ft,,$,$, i,, ,(E), , };#define maxsize 50typedef char DateType;typedef struct{ DateType data[maxsize]; int top;}SeqStack;//定义栈int i,now=0;DateType e,string1[maxsize];void InitSt(SeqStack* L)//初始化{ L-top=0;}char push(SeqStack* L,DateType e)//入栈{ if(L-top==maxsize) { printf(\n\t\t\t栈已满!); return 0; } L-data[L-top]=e; L-top++; return 1;}char pop(SeqStack* L)//出栈{ i=L-top; e=L-data[i-1]; if(L-top==0) { prin
原创力文档

文档评论(0)