当前位置:网站首页>C语言:判断字母
C语言:判断字母
2022-07-29 02:17:00 【高邮吴少】
题目链接
从键盘任意输入一个字符,编程判断是否是字母(包括大小写)。
#include<stdio.h>
int main()
{
int ch=0;
while((ch=getchar())!=EOF)//多组输入
{
getchar();
//因为你要多按一个回车才输入下一个
//所以每行不仅仅是有一个字母或数字,还有一个'\n'
if((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
{
printf("YES\n");
}
else
{
printf("NO");
}
}
}
边栏推荐
- owt-server源码剖析(四)--video模块分析之Mixer Out
- UE4.25 Slate源码解读
- XSS range (II) xss.haozi
- Production scheme and advantages of online 3D digital exhibition hall
- time_ Wait and close_ Cause of wait
- Ffmpeg+sdl+qt is a simple video player
- Shell 脚本 快速入门 -01
- 区区区间---线段树lazy标记板子题
- 第八天笔记
- Where, having, group by, order by, is null, not in, subquery, delete, date function
猜你喜欢
[error reporting] node:internal/modules/cjs/loader:936 [solution]
【OpenCV】使用OpenCV调用手机摄像头
Shell 脚本 快速入门 -01
用于校园流浪猫信息记录和分享的小程序源码/微信云开发中大猫谱小程序源码
第八天笔记
K210——声源定位、声音识别
FFmpeg+SDL+QT实现简单是视频播放器
Source code and display of 18 classic programs in C language vs2019
STM32C8T6编码器电机测速与arduino光电模块测速
Ten methods to prevent blackmail software from attacking data
随机推荐
Which is a good automatic account distribution system?
Polygon zkevm - Introduction to HERMEZ 2.0
Memories of many years ago
ECCV 2022 | AirDet:无需微调的小样本目标检测方法
[untitled]
以科技传递温度,vivo亮相数字中国建设峰会
Servlet三种实现方式
CatchAdmin实战教程(四)Table组件相关功能实现
Understand the evolution of redis architecture in one article
C语言:小乐乐与进制转换
ES6 detailed quick start!
Wechat applet - Advanced chapter Lin UI component library source code analysis button component (II)
2022/07/28 learning notes (day18) common APIs
平凡的快乐
This blogger has a comprehensive classification of QT. If you are free, go to study and summarize it and record it.
Why is redis fast? Message queue, single thread
一款好看的iapp捐赠榜单源码
线上3d数字展厅制作方案及优点
【无标题】
time_wait和close_wait产生原因