文件名称:22
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:143.49kb
-
已下载: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
实验三/Debug/实验三.exe
实验三/Debug/实验三.pdb
实验三/Debug/实验三.obj
实验三/Debug/Desktop_1.ini
实验三/Debug/Desktop_2.ini
实验三/实验三.cpp
实验三/实验三.opt
实验三/Desktop_1.ini
实验三/Desktop_2.ini
实验三/Debug
实验三
实验三/实验三.dsp
实验三/实验三.dsw
实验三/实验三.ncb
实验三/实验三.plg
实验三/Debug/vc60.pdb
实验三/Debug/实验三.exe
实验三/Debug/实验三.pdb
实验三/Debug/实验三.obj
实验三/Debug/Desktop_1.ini
实验三/Debug/Desktop_2.ini
实验三/实验三.cpp
实验三/实验三.opt
实验三/Desktop_1.ini
实验三/Desktop_2.ini
实验三/Debug
实验三
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.