文件名称:practice-3.1
介绍说明--下载内容均来自于网络,请自行研究使用
1. 编写一个程序algo3-1.cpp,实现顺序栈的各种基本运算,并在此基础上设计一个主程序完成如下功能:
(1)初始化栈s;
(2)判断栈s是否非空;
(3)依次进栈元素a,b,c,d,e;
(4)判断栈s是否非空;
(5)输出栈长度;
(6)输出从栈顶到栈底元素;
(7)输出出栈序列;
(8)判断栈s是否非空;
(9)释放栈;
-(1) Write a program algo3-1.cpp order stack basic arithmetic and designed on the basis of a main program performs the following functions:
(1) initialize the stack s
(2) to determine whether non-empty stack s
(3) turn into the stack elements a, b, c, d, e-
(4) to determine whether non-empty stack s
(5) the output stack length
(6) The output from the top to the bottom of the stack elements
(7) output from the stack sequence
(8) to determine whether non-empty stack s
(9) the release of the stack
(1)初始化栈s;
(2)判断栈s是否非空;
(3)依次进栈元素a,b,c,d,e;
(4)判断栈s是否非空;
(5)输出栈长度;
(6)输出从栈顶到栈底元素;
(7)输出出栈序列;
(8)判断栈s是否非空;
(9)释放栈;
-(1) Write a program algo3-1.cpp order stack basic arithmetic and designed on the basis of a main program performs the following functions:
(1) initialize the stack s
(2) to determine whether non-empty stack s
(3) turn into the stack elements a, b, c, d, e-
(4) to determine whether non-empty stack s
(5) the output stack length
(6) The output from the top to the bottom of the stack elements
(7) output from the stack sequence
(8) to determine whether non-empty stack s
(9) the release of the stack
(系统自动生成,下载前可以参看下载内容)
下载文件列表
practice-3.1.cpp