标题:求一个判断字符串能否为变量名的程序
取消只看楼主
薇儿2333
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2018-4-19
结帖率:66.67%
已结贴  问题点数:20 回复次数:0 
求一个判断字符串能否为变量名的程序
求助大佬
Xiaoming is learning C Programming Language recent decades, but he can't identify whether a variable name valid for C, please implement a program to help him.
If the input string is valid, output "yes", otherwise, output "no". The system identifiers are invalid, because you should not use them.
The input contains more than one lines and each lines contains no more than 256 characters.
Note that the key identifiers of C are as follows:
auto, break, case, char, const, continue, default, do, double, else, enum, extern, float, for, goto, if, int, long, register, return, short, signed, sizeof, static, struct, switch, typedef, union, unsigned, void, volatile, while
Sample Input
123
for
SQOOP_HOME
__name__
mail@
Sample Output
no
no
yes
yes
no
搜索更多相关主题的帖子: 判断 the for input output 
2018-04-19 23:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-486212-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.394714 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved