C语言训练-大、小写问题 为什么不能 gets(a); strlwr(a);这样写? 摘要:解题思路:注意事项:参考代码: &nb 题解列表 2022年03月01日 0 点赞 0 评论 506 浏览 评分:0.0
[Sapphire]1124:大小写转换(C语言代码) 摘要:解题思路:大写字母+=32=小写字母参考代码:#include<stdio.h> #include<string.h> int main() { int i; char st…… 题解列表 2022年02月16日 0 点赞 0 评论 507 浏览 评分:0.0
常用懒人解法 摘要:解题思路:直接调用内置函数tolower(),作用是将大写字母字符转成小写字符注意事项:非万能头选手记得引用ctype头文件参考代码:#include<bits/stdc++.h>using name…… 题解列表 2022年02月12日 0 点赞 0 评论 545 浏览 评分:9.9
Hifipsysta-1124题-C语言训练-大、小写问题(C++代码)7行代码搞定 摘要:```cpp #include #include #include using namespace std; int main(){ string str; getl…… 题解列表 2022年01月30日 0 点赞 0 评论 409 浏览 评分:0.0
1124: C语言训练-大、小写问题 摘要:解题思路:100以内的字符串,依次判断每个字符的值,是大写则切换成小写(+32);其它类型直接输出;注意事项:无参考代码:#include<stdio.h>#include<string.h>char…… 题解列表 2022年01月19日 0 点赞 0 评论 495 浏览 评分:0.0
优质题解 C语言训练-大、小写问题 摘要:解题思路:C标准中有一个一个头文件,这里面定义了一批C语言字符处理函数,用于测试字符是否属于特定的字符类别,如字母字符、控制字符、数字、等等 头文件: 函数: (1)int islower(in…… 题解列表 2022年01月18日 2 点赞 3 评论 3774 浏览 评分:8.0
C语言训练-大、小写问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char a[1000]; int i,n; gets(a); n=str…… 题解列表 2021年12月30日 0 点赞 1 评论 468 浏览 评分:9.9
C语言训练-大、小写问题(c语言) 摘要:解题思路:注意事项:参考代码:#includechar a[100];int main(){ int i,j,n=100; scanf("%[^\n]",a);//表示以回车结束 while(a[--…… 题解列表 2021年12月11日 0 点赞 0 评论 519 浏览 评分:0.0
1124: C语言训练-大、小写问题 摘要:此题关键是使用isupper()函数,另外注意读数据使用getline()。#include<bits/stdc++.h> using namespace std; int main(){ …… 题解列表 2021年12月10日 0 点赞 0 评论 472 浏览 评分:0.0
活用函数tolower( ) 摘要:```c #include #include #include int main() { char inp[110];int i; gets(inp); for(i=0;i…… 题解列表 2021年12月08日 0 点赞 0 评论 671 浏览 评分:9.9