登录
首页 » C# » « 问题描述:在对高级语言编写的程序进行编译时会遇到表达式或字符串的括号匹配问题。例如C++程序中左、右花括号“{”和“}”的匹配问题。表达式(字符...

« 问题描述:在对高级语言编写的程序进行编译时会遇到表达式或字符串的括号匹配问题。例如C++程序中左、右花括号“{”和“}”的匹配问题。表达式(字符...

于 2022-04-17 发布 文件大小:1.17 kB
0 126
下载积分: 2 下载次数: 1

代码说明:

« 问题描述:在对高级语言编写的程序进行编译时会遇到表达式或字符串的括号匹配问题。例如C++程序中左、右花括号“{”和“}”的匹配问题。表达式(字符串)的括号匹配问题要求确定一给定表达式(字符串)中左、右括号的匹配情况。例如,表达式(x*(x+y)-z)在位置1 和4处有左括号,在位置8 和11 处有右括号。位置1 处的左括号与位置11 处的右括号相匹配;位置4 处的左括号与位置8 处的右括号相匹配。而在表达式(x+y)*z)(中,位置8处的右括号没有可匹配的左括号,位置9处的左括号没有可匹配的右括号。« 编程任务:给定一个C++源程序,编程计算其中括号“”;“(”和“)”;“[”和“]”;“{”和“}”的匹配情况-laquo; Problem description : In preparation for the high-level language compiler procedures that will be encountered expression or string matching brackets. C procedures such as left and right curly "(" and ")" matching problem. Expression (string), the brackets matching requirement to set a fixed expression (string) left and right brackets of the match. For example, the expression (x* (x y)- z) in a position and have left four brackets in position 8 and 11 have the right brackets. A position on the left with brackets of 11 positions in brackets right match; Location four brackets on the left and the location of eight brackets right match. The expr

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 对心电信号进行预处理
    说明:  对心电信号进行预处理,肌电、工频干扰、相位漂移滤除,为后续分析做准备(The ECG signal is preprocessed, and the EMG, power frequency interference and phase drift are filtered out to prepare for the subsequent analysis)
    2020-06-12 01:52:37下载
    积分:1
  • BSTR char* sprintf
    BSTR 转成字符串,多字符串链接,用于com组件,字符串转换和链接
    2022-02-01 09:39:24下载
    积分:1
  • VC_Example
    PRODAVE 实例 PRODAVE是西门子的通讯协议,这个文件是开源的PRODAVE实例,能够兼容西门子的PLC(PRODAVE example is the Siemens PRODAVE communication protocol, this document is open-source PRODAVE example, can compatible with Siemens PLC)
    2008-12-19 15:34:42下载
    积分:1
  • CLR-Console
    本程序为自己学习公共语言运行时、托管C++在VS2010上建立的控制台程序,为托管C++的入门程序。(This procedure for yourself to learn the common language runtime, managed c++ in VS2010 console program, established as managed c++ primer application.)
    2014-10-23 11:37:23下载
    积分:1
  • katsevich-recreat
    三维图像重建,采用多种滤波方法,实现三维图像重建,该算法效率比较高。目前已经应用到实际工程。(3-dim picture recreat,use filter method and project method to realise the recreating of 3 dim picture.it is a very effective method ,applied in the project.so I share it with you . )
    2016-08-26 18:23:53下载
    积分:1
  • adaptiveFIR
    自适应滤波 开发环境:ccs3.1 设置事项:project-build options-linker-stack options 500 (adaptive filtering development environment : ccs3.1 set matters : project-build options-linker-stack options 500)
    2007-04-24 08:53:37下载
    积分:1
  • 石器时代gmsv源代码支持ABLUA修正大量BUG
    石器时代gmsv源代码支持ABLUA修正大量BUG
    2022-01-25 14:57:03下载
    积分:1
  • opcioncover
    本书的大部分主题均结合一个具体的游戏开发系统Fly3D包含在光盘中加以讲述(Most of the topics in this book are covered in a CD-ROM in conjunction with a specific game development system, Fly3D.)
    2019-04-12 18:14:06下载
    积分:1
  • 430单片机
    这是一个MSP430F149单片机的实例程序,经过运行可以采集到DS18B20的温度,并做显示
    2022-12-06 09:30:03下载
    积分:1
  • DominionManager
    CDominionManager.cpp Fixes dominion wars in l2 gracia final
    2020-06-18 08:20:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载