文件名称:实现顺序栈的各种基本运算
介绍说明--下载内容来自于网络,使用问题请自行百度
1、编写一个程序algo3-1.cpp,实现顺序栈的各种基本运算,并在此基础上设计一个主程序实现如下功能:
(1)初始化栈S。
(2)判断栈S是否非空。
(3)依次进栈元素a,b,c,d,e。
(4)判断栈S是否非空。
(5)输出栈的长度。
(6)输出从栈顶到栈底的元素。
(7)输出出栈序列。
(8)判断栈S是否非空。
(9)释放栈
,1, the preparation of a program algo3-1.cpp, the realization of the order of the stack of basic computing, and on this basis the design of a main program to achieve the following functions: (1) initialize the stack S. (2) to determine whether the stack S is not empty. (3) into the stack element followed by a, b, c, d, e. (4) to determine whether the stack S is not empty. (5) the length of the output stack. (6) output from the Top-stack at the end of the element. (7) the output sequence of the stack. (8) to determine whether the stack S is not empty. (9) release of the stack
(1)初始化栈S。
(2)判断栈S是否非空。
(3)依次进栈元素a,b,c,d,e。
(4)判断栈S是否非空。
(5)输出栈的长度。
(6)输出从栈顶到栈底的元素。
(7)输出出栈序列。
(8)判断栈S是否非空。
(9)释放栈
,1, the preparation of a program algo3-1.cpp, the realization of the order of the stack of basic computing, and on this basis the design of a main program to achieve the following functions: (1) initialize the stack S. (2) to determine whether the stack S is not empty. (3) into the stack element followed by a, b, c, d, e. (4) to determine whether the stack S is not empty. (5) the length of the output stack. (6) output from the Top-stack at the end of the element. (7) the output sequence of the stack. (8) to determine whether the stack S is not empty. (9) release of the stack
(系统自动生成,下载前可以参看下载内容)
下载文件列表
algo3-1.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.