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

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

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

  • vc2012 控制Dobot机械部运动例程
    MFC编程实现对Dobot越疆魔术师机械臂的动作控制。完整例程,可以在VC2015编译运行。需要Dobotapi支持。
    2022-08-08 07:50:30下载
    积分:1
  • SL_Chart
    silverlight图表,实现linechart, bubble chart等,并在鼠标悬停在数据点时,显示格式化数据信息(silverlight Chart )
    2010-02-04 11:05:01下载
    积分:1
  • AD9854DDS信号发生器
    采用stm32作为主控芯片,经验证,可正确产生频率可调的正弦波和方波(Using STM32 as the main control chip, it has been proved that sinusoidal and square waves with adjustable frequency can be generated correctly.)
    2020-06-20 00:00:02下载
    积分:1
  • stm32f103zet6开环控制霍尔电机
    stm32f103zet6控制BLDC直流无刷电机,调节占空比,调节电机转速。控制功能包括:按键控制正转、反转、加速、减速和加减速。采用MDK-ARM5.18编程,C语言编写,调节直流无刷电机。
    2022-01-25 17:15:46下载
    积分:1
  • ccan
    pic18f248的CAN通信chengxu(pic18f248 CAN communication chengxu)
    2005-03-31 08:23:45下载
    积分:1
  • CLA-CCSv4.x
    F28035DSP,在CCS4环境下的配置,可以同时调试主CPU和CLA(F28035DSP, in the environment of CCS4 configuration, can debug the main CPU and CLA)
    2020-12-12 16:09:15下载
    积分:1
  • 36.912-2
    LTE--A最新标准912系列,对于研究LTE-A系统非常有用(LTE- A New Standard 912 series, for the study of LTE-A system is useful)
    2010-05-09 12:23:23下载
    积分:1
  • NSC
    NSC program calculates BER of NSC
    2014-01-23 22:06:16下载
    积分:1
  • NetGuard
    网络防火墙NetGuard源码.基于费尔的Ndis Hook技术,里面有代码说明.(NetGuard source network firewall. Ndis Hook of Fairbanks-based technology, there are codes.)
    2009-04-28 21:07:31下载
    积分:1
  • configs
    说明:  诛仙element下配置文件重新整理,修改左上方显示内容(Configuration file reorganization under Qixian element)
    2019-01-10 19:00:11下载
    积分:1
  • 696516资源总数
  • 106648会员总数
  • 8今日下载