3.
Lines consisting of a definition of a single C variable of type int, without initialization, optionally preceded by
unsigned, and optionally followed by any single line // comment. Example:
int varname; // optional comment
You may assume that all of the whitespace in the line consists of space characters (no tabs). You may also assume
that varname will not be a C keyword (i.e., you do not have to try to check for this with your regular expression).
这第三题的意思是:
由单个int类型的c变量定义构成的行,可选前置unsigned,可选后跟单行注释//,比如:
int varname;// optional comment
你可以假定行中所有空白由空格字符组成(没有tab),你可以假定变量名不是c语言关键字(就是说你不需要尝试用正则来校验这一点)。