read char
2024-09-06 05:02:02
char readchar()
{
char tmp = ;
char ch;
bool read = false;
while (ch = getchar())
{
if (ch == '-' || ch == '+')
{
read = true;
tmp = ch;
}
else if (read)
{
break;
}
else
{
continue;
}
}
return tmp;
}ispunct(ch=getchar()) 非字母数字空格 返回1 字母数字空格返回0;
- isalpha() 大写返回2 小写返回1 数字返回0;
- tolower() 若是大写字母则返回小写 若是小写字母则返回小写
最新文章
- SQL注入处理
- 关于判断checkbox选中问题
- 浅析 - iOS应用程序的生命周期
- 剑指OFFER之反转链表(九度OJ1518)
- Eclipse使用技巧及个性化设计
- HTTP 错误 500.21 - Internal Server Error处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”
- Linux企业级项目实践之网络爬虫(2)——网络爬虫的结构与工作流程
- 27 Remove Element
- USACO Section 5.3 Big Barn(dp)
- sql数据黑马程序员——SQL入门
- Java 生产图片验证码
- Jmeter3.1 使用技巧
- .vue文件在webstorm中es6语法报错解决方法
- ASCII 大文字生成器
- springboot 整合 redis
- mac中安装lua5.1.5
- ReportViewer的使用总结
- andorid 表格布局
- JAVA8 List排序
- Intent 常用场景 FileProvider 拍照 裁剪 MD
热门文章
- 最新 朗玛信息java校招面经 (含整理过的面试题大全)
- Hadoop 单节点(或集群)基本配置信息
- 导出远程oracle数据库到本地
- Proxy 和aop
- 聊聊BIO、NIO与AIO的区别
- 剑指offer47:位运算+递归。求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。
- Ubuntu 提示sudo: java: command not found解决办法
- extra bytes at beginning or within zipfile
- C# Redis分布式锁的应用 - 叶子栈 - SegmentFault 思否
- 沿路径动画(Animation Along a Path)