#include<iostream.h>

typedef char datatype;
const int maxsize=100;
struct sqstack
{
    datatype data[maxsize];
    int top;
};

void init_sqstack(sqstack sq);
int push_sqstack(sqstack sq,datatype x);

void main()
{
    sqstack A;
    init_sqstack(A);
    push_sqstack(A,3);
}


void init_sqstack(sqstack sq)
{
    sq.top=-1;
}


int push_sqstack(sqstack sq,datatype x)
{

    if(sq.top==maxsize-1)
    {
        cout<<"栈满,不能进栈!\n";
        return 0;    
    }
    
    else
    {
        
        sq.data[(sq.top)++]=x;
        cout<<4444<<endl;
        
        cout<<sq.data<<endl;
        return 1;
    }
}