[Sapphire]1124:大小写转换(C语言代码) 摘要:解题思路:大写字母+=32=小写字母参考代码:#include<stdio.h> #include<string.h> int main() { int i; char st…… 题解列表 2022年02月16日 0 点赞 0 评论 281 浏览 评分:0.0
常用懒人解法 摘要:解题思路:直接调用内置函数tolower(),作用是将大写字母字符转成小写字符注意事项:非万能头选手记得引用ctype头文件参考代码:#include<bits/stdc++.h>using name…… 题解列表 2022年02月12日 0 点赞 0 评论 319 浏览 评分:9.9
Hifipsysta-1124题-C语言训练-大、小写问题(C++代码)7行代码搞定 摘要:```cpp #include #include #include using namespace std; int main(){ string str; getl…… 题解列表 2022年01月30日 0 点赞 0 评论 190 浏览 评分:0.0
1124: C语言训练-大、小写问题 摘要:解题思路:100以内的字符串,依次判断每个字符的值,是大写则切换成小写(+32);其它类型直接输出;注意事项:无参考代码:#include<stdio.h>#include<string.h>char…… 题解列表 2022年01月19日 0 点赞 0 评论 269 浏览 评分:0.0
优质题解 C语言训练-大、小写问题 摘要:解题思路:C标准中有一个一个头文件,这里面定义了一批C语言字符处理函数,用于测试字符是否属于特定的字符类别,如字母字符、控制字符、数字、等等 头文件: 函数: (1)int islower(in…… 题解列表 2022年01月18日 2 点赞 3 评论 3558 浏览 评分: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 评论 277 浏览 评分:9.9
C语言训练-大、小写问题(c语言) 摘要:解题思路:注意事项:参考代码:#includechar a[100];int main(){ int i,j,n=100; scanf("%[^\n]",a);//表示以回车结束 while(a[--…… 题解列表 2021年12月11日 0 点赞 0 评论 287 浏览 评分:0.0
1124: C语言训练-大、小写问题 摘要:此题关键是使用isupper()函数,另外注意读数据使用getline()。#include<bits/stdc++.h> using namespace std; int main(){ …… 题解列表 2021年12月10日 0 点赞 0 评论 205 浏览 评分: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 评论 433 浏览 评分:9.9
大小写字符转换(大写变小写,其他照样输出) 摘要:解题思路:用一个自定义函数,让大写转小写。注意事项:这个我在编译器上运行一致,结果上传判断我说 答案错误,不知道为什么的我选择在这里留坑。参考代码:void p(char a[])//传地址{ in…… 题解列表 2021年12月04日 0 点赞 0 评论 308 浏览 评分:0.0