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

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

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

  • opengl
    在VC环境下利用opengl进行编程实现功能(Use opengl achieve)
    2013-05-17 09:19:35下载
    积分:1
  • led
    atmega128 led control source
    2016-11-25 13:05:37下载
    积分:1
  • VPRTW(c)
    解VRPTW问题的模拟退火程序 (VRPTW problem solution simulated annealing procedure)
    2007-10-19 21:44:27下载
    积分:1
  • qujainfugai
    算法设计课本的第四章区间覆盖问题作业题的实现(Operation problem of interval coverage problem in fourth chapters of algorithm design)
    2017-12-15 17:57:08下载
    积分:1
  • STM8串口调试程序,可实现浮点数的传输。
    用于STM8串口调试, /************************************* *************************************/
    2022-07-11 06:56:09下载
    积分:1
  • 443C_Simion_Alexandru
    The (a) section of Figure 1 illustrates the Line Echo Canceller (LEC) residing in the access network where echoes occur. Other voice processing modules, such as Automatic Level Control (ALC) and Noise Reduction (NR), are shown merely for illustration purposes. On the terminal side, both acoustic and electrical echo can occur. If the voice terminal is a speaker telephone set with an open acoustical path from the speaker to the microphone, the effect of acoustical echo is combined with the effect of the network echo. Because there is only a miniscule delay between the electrical signal and its echo, the speaker/listener is exposed to an effect known as side tone. Typically, instead of mounting a LEC at the terminal, side tone circuitry is placed to control the amount of the returned energy. The (b) section of Figure 1 shows examples of echo canceller signals representing the following:
    2012-01-05 03:18:53下载
    积分:1
  • C#热敏小票打印机代码
    VS2005  热敏小票打印机代码 打印类型支持条形码、二维码、图片打印 同时支持串口、并口、IP打印 可通过修改源代码来满足项目需求
    2023-04-25 07:30:04下载
    积分:1
  • clocko-LCD
    stm32f103下电子钟,利用液晶屏显示(stm32f103 an electronic clock, use the LCD display)
    2016-06-06 15:22:39下载
    积分:1
  • xz-embedded-20130513.tar
    说明:  xz compression algorithm
    2019-06-05 06:32:34下载
    积分:1
  • Repeat-FCM
    模糊c均值算法 数据挖掘 机器学习中可使用的一种简单聚类算法(FCM in data mining or machine learing)
    2016-05-21 09:17:08下载
    积分:1
  • 696518资源总数
  • 105895会员总数
  • 18今日下载