在这里插入代码片
#include "stdio.h"
#include "malloc.h"
#define max 100
typedef struct{
int *base;//栈底
int *top;//栈顶
int length;
}stack;
void init(stack *s){
s->base=(int
在这里插入代码片
#include "stdio.h"
#include "malloc.h"
#define max 100
typedef struct{
int *base;//栈底
int *top;//栈顶
int length;
}stack;
void init(stack *s){
s->base=(int