此代码可以正常运行,下附有运行区,是实实在在的类C语言
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
#define MAXSIZE 100
enum Status{
ERROR,OK};
typedef int ElemType;
typedef struct
{
ElemType *base; //起始地址
ElemType *top;
int stacksize;
}SqStack;
Status InitStack(SqStack &S) //初始化
{
S.base=(ElemType *