1 数值转换问题(顺序栈)
#include <stdio.h>
#define MAXSIZE 100
typedef int datatype;
typedef struct
{
datatype data[MAXSIZE];
int top;
}SeqStack;
void Init_SeqStack(SeqStack *s)
{
s->top=-1;
}
int NoEmpty_SeqStack(SeqStack *s)
{
if(s->top==-1)
return 0;
else
return 1;
}
int Push_SeqStack(SeqStack *s,datatype x)