文件名称:P5
介绍说明--下载内容均来自于网络,请自行研究使用
查找C源程序文件中控制流关键字(while, for, if)的出现位置。按出现顺序输出其出现的位置(用行数和在该行上第几个字符表示)。要求字符串常量中出现的关键字不应计算,同时该C程序满足下列规定:
1、该程序符合C语言语法要求。
2、双引号只会用在字符串常量中,其它地方不会出现双引号字符"。
3、程序中的所有标识符只由字母和数字组成。
4、程序中没有注释语句。-Find a C source file control flow keyword (while, for, if) the occurrence. According to the order in which they appear in the output location (by number of lines and the line in the first few characters). Keywords requirements should not appear in a string constant calculation, while the C program to meet the following requirements: 1, the program is in line with the C language syntax requirements. 2, double quotes will only be used in a string literal, does not appear elsewhere in the double-quote character. " 3, all identifiers in the program only consist of letters and numbers. 4, the program did not comment statements.
1、该程序符合C语言语法要求。
2、双引号只会用在字符串常量中,其它地方不会出现双引号字符"。
3、程序中的所有标识符只由字母和数字组成。
4、程序中没有注释语句。-Find a C source file control flow keyword (while, for, if) the occurrence. According to the order in which they appear in the output location (by number of lines and the line in the first few characters). Keywords requirements should not appear in a string constant calculation, while the C program to meet the following requirements: 1, the program is in line with the C language syntax requirements. 2, double quotes will only be used in a string literal, does not appear elsewhere in the double-quote character. " 3, all identifiers in the program only consist of letters and numbers. 4, the program did not comment statements.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
P5.c