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

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

于 2022-04-17 发布 文件大小:1.17 kB
0 149
下载积分: 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 个回复

  • BD-data-analysis
    本代码是根据GPS数据解析代码经修改适用于北斗数据的解析(This code is a modification applies to Compass data analysis based on GPS data parsing code by)
    2014-08-15 15:33:12下载
    积分:1
  • udf_dpm_tongji
    fluent多相流DPM模型中使用用户自定义函数对颗粒进行统计(DPM fluent multiphase flow model using user-defined functions for particle statistics)
    2020-12-06 21:09:21下载
    积分:1
  • VncSharpWpf-master
    c#实现vnc viewer 功能齐全,界面是WPF搭建,在国内其他网站没有看到过类似
    2016-01-23 15:51:24下载
    积分:1
  • wince5.0下的电池的上层应用程序 BattThread
    wince5.0下的电池的上层应用程序,检测是否充电,弹出界面,显示电量大小,是学习ui线程的好例子(wince5.0 battery under the upper application, testing whether the charge, showing the size of electricity is a good example to learn ui thread)
    2009-09-21 09:44:35下载
    积分:1
  • hi3520-master
    tools source for hi3520D
    2018-10-27 08:21:42下载
    积分:1
  • Temperature, Humidity and Pressure for STM32 (HTS221 and LPS25)
    STM32的温度、湿度和压力-带传感器HTS221和LPS25
    2022-03-04 06:47:13下载
    积分:1
  • Hermite
    此程序主要是关于赫米特多项式的研究与C#中的实现(Hemet polynomial on research and C# implementation)
    2014-12-12 01:27:23下载
    积分:1
  • Temperature1602
    proteus仿真 DS18B20的温度显示并可用按键调节上下限 附仿真图(proteus simulation DS18B20 temperature display and can be attached to the upper and lower buttons to adjust the simulation map)
    2014-06-25 13:59:41下载
    积分:1
  • 端口线程扫描程序(附源码BCB5)(1[1].0)
    端口扫描小程序,C语言编写,亲测可用欢迎使用。(Port scanning program, written in C language, pro-test can be welcomed.)
    2020-06-16 09:20:01下载
    积分:1
  • functions.plist
    招聘类应用职能列表plist,全手打,只此一份(plist of job functions)
    2016-05-31 16:00:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载