#include "stddef.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "ctype.h"
#define maxsize 64
#define TRUE 1
#define FALSE 0
#define n 64
typedef int datatype;
typedef struct{
datatype data[maxsize];
int top;
}seqstack;
seqstack s;
setnull(s)
seqstack *s;
{s->top=-1;}
empty(s)
seqstack *s;
{if (s->top>=0)
return FALSE;
else
return TRUE;
}
seqstack *push(s,x)
seqstack *s;
datatype x;
{
if (s->top==maxsize)
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载