文件名称:parser
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.