文件名称:test1
介绍说明--下载内容均来自于网络,请自行研究使用
1.1输入输出
程序输入为含有Pascal语言字符串的文件Test.cpp程序在控制台输出为含有二元组<code,String>和错误信息。其中code为单词符号类别标示,String为识别的单词。
1.2大小写不敏感:
程序对大小写不敏感,输出均为小写字符。
1.3注释识别功能:
当程序中出现“/*”时就会放弃对之后字符的识别,直至遇到“*/”,并将/*…*/部分识别为注释输出。
当输入中只有“/*”而没有与之对应的“*/”时输出“ERROE!(错误注释!)”,同时放弃对之后字符串的识别。-1.1 Input and output program input file containing the Pascal language program Test.cpp string containing the console output tuple <code,String> And error messages. Which code word symbol for the category labeled, String to recognize words. 1.2 case-insensitive: the program is not case sensitive, outputs are lowercase. 1.3 notes recognition feature: it will give up the " /*" after the character recognition when, until it encounters " * /" and /* ...*/comment section identified as the output when the program appears. When the input is only " /*" and no corresponding " * /" output " ERROE! (Wrong note!)" , While giving up after identification string.
程序输入为含有Pascal语言字符串的文件Test.cpp程序在控制台输出为含有二元组<code,String>和错误信息。其中code为单词符号类别标示,String为识别的单词。
1.2大小写不敏感:
程序对大小写不敏感,输出均为小写字符。
1.3注释识别功能:
当程序中出现“/*”时就会放弃对之后字符的识别,直至遇到“*/”,并将/*…*/部分识别为注释输出。
当输入中只有“/*”而没有与之对应的“*/”时输出“ERROE!(错误注释!)”,同时放弃对之后字符串的识别。-1.1 Input and output program input file containing the Pascal language program Test.cpp string containing the console output tuple <code,String> And error messages. Which code word symbol for the category labeled, String to recognize words. 1.2 case-insensitive: the program is not case sensitive, outputs are lowercase. 1.3 notes recognition feature: it will give up the " /*" after the character recognition when, until it encounters " * /" and /* ...*/comment section identified as the output when the program appears. When the input is only " /*" and no corresponding " * /" output " ERROE! (Wrong note!)" , While giving up after identification string.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验一.cpp