这样改改
#include
#include
#include
#define Stack_size 50
typedef struct
{
int data[Stack_size] ;
int top;
} Stack ;
//初始化函数
int InitStack (Stack ** pstack)
{
*pstack=NULL;
*pstack=(Stack *)malloc(sizeof(Stack));
if(*pstack==NULL)
{
return 0;
}
(*pstack)->top=-1;
return 1;
}
int main()
{
Stack *ss;
if(InitStack(&ss))
printf("Initialized OK!");
int e=1234;
//Push(ss,e);
//Pop(ss,&e);
printf("%d",e);
return 0;
}