| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1707 人关注过本帖
标题:求一个判断字符串能否为变量名的程序
取消只看楼主 加入收藏
薇儿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
快速回复:求一个判断字符串能否为变量名的程序
数据加载中...
 
   



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

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