文件名称:22
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 143kb
- 下载次数:
- 0次
- 提 供 者:
- 吴*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实验内容:
1. 问题描述
先定义堆栈的几个基本操作,再设计一主函数利用堆的操作完成以下功能:
假设一个算术表达式中可以包含三种括号:()[]{},且这三种括号可以按任意次序嵌套使用(如:...[...{...}...[...]...]...(...))。编写判别给定表达式中所含括号是否正确配对出现的算法,已知表达式已存入数据元素为字符的顺序表中。
2. 基本要求
读入2个不同的、长度不超过80个字符的、包含三种括号的算术表达式,输出测试结果。-Experiment: 1. Descr iption of the problem to define a few basic operation of the stack, and then design a main function of the use of heap operations to accomplish the following functions: Suppose an arithmetic expression can contain three kinds of brackets :()[]{}, and three brackets can be arbitrary order of nested (such as :...[...{...}...[...]...]...(...))。 The preparation of distinguishing a given expression contained in the brackets appear correctly matching algorithms, data elements are known expression for the characters had been deposited into the order table. 2. The basic requirement read into the two different length of no more than 80 characters, contains three kinds of parentheses in arithmetic expressions, the output test results.
1. 问题描述
先定义堆栈的几个基本操作,再设计一主函数利用堆的操作完成以下功能:
假设一个算术表达式中可以包含三种括号:()[]{},且这三种括号可以按任意次序嵌套使用(如:...[...{...}...[...]...]...(...))。编写判别给定表达式中所含括号是否正确配对出现的算法,已知表达式已存入数据元素为字符的顺序表中。
2. 基本要求
读入2个不同的、长度不超过80个字符的、包含三种括号的算术表达式,输出测试结果。-Experiment: 1. Descr iption of the problem to define a few basic operation of the stack, and then design a main function of the use of heap operations to accomplish the following functions: Suppose an arithmetic expression can contain three kinds of brackets :()[]{}, and three brackets can be arbitrary order of nested (such as :...[...{...}...[...]...]...(...))。 The preparation of distinguishing a given expression contained in the brackets appear correctly matching algorithms, data elements are known expression for the characters had been deposited into the order table. 2. The basic requirement read into the two different length of no more than 80 characters, contains three kinds of parentheses in arithmetic expressions, the output test results.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验三\SeqStack.h
......\实验三.dsp
......\实验三.dsw
......\实验三.ncb
......\实验三.plg
......\Debug\vc60.pdb
......\.....\实验三.exe
......\.....\实验三.pdb
......\.....\实验三.obj
......\.....\Desktop_1.ini
......\.....\Desktop_2.ini
......\实验三.cpp
......\实验三.opt
......\Desktop_1.ini
......\Desktop_2.ini
......\Debug
实验三
......\实验三.dsp
......\实验三.dsw
......\实验三.ncb
......\实验三.plg
......\Debug\vc60.pdb
......\.....\实验三.exe
......\.....\实验三.pdb
......\.....\实验三.obj
......\.....\Desktop_1.ini
......\.....\Desktop_2.ini
......\实验三.cpp
......\实验三.opt
......\Desktop_1.ini
......\Desktop_2.ini
......\Debug
实验三