特牛网址导航

顺序栈的入栈、出栈算法_一个栈出栈和入栈算法怎么写-CSDN博客

网友收藏
文章浏览阅读8k次,点赞6次,收藏13次。#include<stdio.h>#include<stdlib.h>int stack[10]; //stack堆int top = 0; //栈顶指针top,指向实际栈顶后的空位置,初值为0void push(int x);int pop(void);int main(){ int i; for(i=0; i<10; i++) //入栈..._一个栈出栈和入栈算法怎么写