//数据元素出栈 int pop(int *a,int top) { if(top==-1) { printf("空栈"); return -1; } printf("弹栈元素:%d\n",a[top]); top--; return top; }