1130: C语言训练-数字母 摘要:此题关键是使用isalpha()函数,注意读数据使用getline()。(尽管使用cin也能过)#include<bits/stdc++.h> using namespace std; int m…… 题解列表 2021年12月10日 0 点赞 0 评论 257 浏览 评分:0.0
编写题解 1130: C语言训练-数字母(利用cctype) 摘要:解题思路:我看了一下题解,好像用ctype系列的题解暂时没有。这里就暂且引入一下ctype,操作就稍稍简单一点。ctype.h是C标准函数库中的头文件,定义了一批C语言字符分类函数(C charact…… 题解列表 2023年01月12日 0 点赞 0 评论 119 浏览 评分:0.0
C语言训练-数字母 摘要: #include #include using namespace std; int main() { char a[100]; …… 题解列表 2022年10月17日 0 点赞 0 评论 213 浏览 评分:0.0
1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int main() { st…… 题解列表 2022年10月11日 0 点赞 0 评论 177 浏览 评分:0.0
编写题解 1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;const in…… 题解列表 2023年04月23日 0 点赞 0 评论 119 浏览 评分:0.0
C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int yw;int main(){ getline(cin…… 题解列表 2022年05月10日 0 点赞 0 评论 132 浏览 评分:0.0
编写题解 1130: C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>using namespace std;int main(){ …… 题解列表 2022年03月21日 0 点赞 0 评论 197 浏览 评分:0.0
C语言训练-数字母 (C++代码) 摘要:解题思路:很简单哦注意事项:参考代码:#include<iostream> using namespace std; int main() { char c; int sum = 0; …… 题解列表 2018年06月05日 0 点赞 0 评论 427 浏览 评分:0.0
Hifipsysta-1130题-C语言训练-数字母(C++代码)ctype.h的用法总结 摘要:1. isalnum(int c) 该函数检查所传的字符是否是字母和数字。 2. isalpha(int c) 该函数检查所传的字符是否是字母。 3. iscntrl(int c) 该函数检…… 题解列表 2022年01月26日 0 点赞 0 评论 347 浏览 评分:0.0
C语言训练-数字母-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { char str[101]; cin>>str; …… 题解列表 2019年08月02日 0 点赞 0 评论 652 浏览 评分:0.0