文件名称:parser
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- liji*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Pascal 语言中,复合语句是用begin„ „ end 表示,条件语句的格式是if „ „ then„ „
else„ „ 表示,其中,else 子句可以出现也可以不出现。编一函数,检查Pascal 源文件
中的begin 和end 是否配对,if、then、else 是否配对。
输入:从名为pascal.in的文件中读入数据,该文件中即包含一个没有注释的pascal程序。
输出:输出文件名为pascal.out,如果if,then,else且begin和end配对,请输出“Match!”,否则输出“Error!”。-Pascal language, the compound statement is begin " " end, said the format of a conditional statement is if " " then " " else " " said one, else clause may appear or may not appear. Compile a function, check the Pascal source file begin and end is matched, if, then, else is paired. Input: from a file named pascal.in read data, the file that contains a no comment pascal program. Output: Output file name pascal.out, if the if, then, else, and begin and end pairing, the output " Match!" , Otherwise output " Error!" .
else„ „ 表示,其中,else 子句可以出现也可以不出现。编一函数,检查Pascal 源文件
中的begin 和end 是否配对,if、then、else 是否配对。
输入:从名为pascal.in的文件中读入数据,该文件中即包含一个没有注释的pascal程序。
输出:输出文件名为pascal.out,如果if,then,else且begin和end配对,请输出“Match!”,否则输出“Error!”。-Pascal language, the compound statement is begin " " end, said the format of a conditional statement is if " " then " " else " " said one, else clause may appear or may not appear. Compile a function, check the Pascal source file begin and end is matched, if, then, else is paired. Input: from a file named pascal.in read data, the file that contains a no comment pascal program. Output: Output file name pascal.out, if the if, then, else, and begin and end pairing, the output " Match!" , Otherwise output " Error!" .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
parser.cpp