栈
摘要:
动态栈: 1、top = bottom ,栈空; 2、结点进栈:先把数据保存到栈顶,top指向的当前位置,然后top+1,然后top指向下一个位置; 3、结点出栈:首先top-1,使top指向栈顶元素,然后把栈顶元素取出。 1 #define STACK_SIZE 100 2 #define STA... 阅读全文
posted @ 2015-12-29 15:07 重八 阅读(269) 评论(0) 推荐(0) 编辑
posted @ 2015-12-29 15:07 重八 阅读(269) 评论(0) 推荐(0) 编辑
posted @ 2015-12-29 12:00 重八 阅读(2893) 评论(1) 推荐(0) 编辑
posted @ 2015-12-29 11:25 重八 阅读(1442) 评论(0) 推荐(0) 编辑