车厢调度源代码(C语言)
#include
#include
#include
#definemax50
intn;
FILE*fp;
structsnode{
intdata[max];
inttop;
}s;
voidInit()//初始化栈
{
s.top=-1;
}
voidpush(intq)//进栈
{
s.top++;
s.data[s.top]=q;
}
intpop()//出栈
{
inttemp;
temp=s.data[s.top];
s.top--;
re
下载地址
用户评论