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

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

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

  • 灰度数字图像增强处理hudushuzituxiangzengqang
    灰度数字图像增强处理,灰度数字图像增强处理,灰度数字图像增强处理,(Deal with gray-scale digital image enhancement)
    2020-07-09 11:28:55下载
    积分:1
  • VC++读写Excel文件源代码
    读写excel文件内容,并将其显示到vs界面上(Read and write the contents of the XML file, and display it to the vs interface)
    2017-11-24 15:10:18下载
    积分:1
  • asp.net 及 csharp 写的一个网络书店,是学习和应用的好的参考材料...
    asp.net 及 csharp 写的一个网络书店,是学习和应用的好的参考材料-csharp Asp. Net and write a network of bookstores, the study and application of good reference material
    2022-09-24 21:30:03下载
    积分:1
  • 用52控制AD9850输出正弦波
    接通电源,上电复位后,初始化液晶显示、中断和AD9850;单片机对独立键盘进行处理,判断确认键是否有按下,如有则进行下一步处理,如无,则继续等待;当有确认键按下时对输入值进行判断,判断其输入值是否符合频率输出范围;对输入数据进行处理,将频率值送给1602显示数值,将其转换成频率控制字,写频率控制字给AD9850,改变输出频率值,将准确的正弦信号输出
    2023-03-12 18:00:04下载
    积分:1
  • CardGame
    简单的纸牌游戏,可作为游戏入门实例,是坂本千寻书本的源码。(A simple card game can be used as an instance of the game started, is the source code for Sakamoto Chihiro books.)
    2009-11-15 14:59:30下载
    积分:1
  • IB智慧公交
    说明:  IB智慧公交系统是一款为公交驾驶员及调度员等开发的一款系统,驾驶员具有对公交的线路、站点、班次等信息的查询功能;调度员具有对公交的线路、站点、班次、排班等信息的修改、增加、删除、查询功能。(IB Intelligent Bus System is a system developed for bus drivers and dispatchers. The driver has the function of inquiring the information of bus routes, stations, shifts, etc. The dispatcher has the function of modifying, adding, deleting and inquiring the information of bus routes, stations, shifts and scheduling.)
    2020-07-01 18:00:02下载
    积分:1
  • C#邮件收发程序 发Email和接收邮件
    C#实现的一个邮件收发程序,功能主要是两大块,发送邮件和接收邮件,类似于一个邮件客户端的功能,在这个邮件发送程序中,写了几个函数分别实现相关的模块功能:   对获得连接的用户身份进行验证   获取登录邮箱的各种信息   判断返回的字符串信息,如果是“+OK”,证明登录成功,否则登录失败   根据输入的邮件编号读取邮件信息   获取由参数标识的邮件的全部文本   对读取的邮件内容进行Base64编码   “登录”按钮事件,实例化SmtpClient邮件发送类对象   初始化StreamReader对象,以便以流的形式读取远程主机中的内容   获取远程主机中指定用户的邮件信息   获得远程主机上指定邮件的相关信息,存储到一个string类型的数组中,数组中的内容包括:邮件日期、发信人、收信人、邮件主题、邮件内容等。
    2022-04-23 02:56:49下载
    积分:1
  • ns2-analysis-code
    ns2网络仿真的实例以及对应测试分析代码,含有时延,抖动,丢包率等(ns2 network simulation examples and counterparts test analysis code, containing latency, jitter, packet loss rate etc.)
    2009-02-27 21:08:56下载
    积分:1
  • Sin-Nombre1
    realize de merge sort
    2013-10-06 09:46:27下载
    积分:1
  • constFunction
    const funcation.一个小程序,希望能对大家有帮助(const funcation)
    2011-06-03 09:34:42下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载