📅  最后修改于: 2022-03-11 15:04:40.390000             🧑  作者: Mango
int push(int data) {
if(!isfull()) {
top = top + 1;
stack[top] = data;
} else {
printf("Could not insert data, Stack is full.\n");
}
}