1093: 字符逆序 摘要:```cpp #include using namespace std; string s1; int main() { getline(cin,s1); //int len=str…… 题解列表 2022年12月14日 0 点赞 0 评论 103 浏览 评分:9.9
20221123字符逆序 摘要:解题思路:注意事项:字符串长度为l,则旧/新字符串下标最大均为l-1;参考代码:#include <stdio.h>#include <string.h>int main(){ int i,j…… 题解列表 2022年11月23日 0 点赞 0 评论 77 浏览 评分:0.0
很简单· 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i = 0 ,j=0; char arr [100]; gets(a…… 题解列表 2022年11月19日 0 点赞 0 评论 96 浏览 评分:0.0
编写题解 1093: 字符逆序加错误反思 摘要:解题思路:注意事项:之前代码没有考虑str[i] = getchar()) != EOF and i <= 100导致一直通过不了参考代码:char str[101]; int i; …… 题解列表 2022年11月14日 0 点赞 0 评论 61 浏览 评分:0.0
最简方法字符逆序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; char ch[100]; gets(ch); for(i=strlen(ch)-1;i>=…… 题解列表 2022年11月10日 0 点赞 0 评论 113 浏览 评分:9.9
1093: 字符逆序 摘要: #include #include int main() { char arr[100] = { '\0' }; fgets(arr,100,stdin);//fgets()会把读入…… 题解列表 2022年11月09日 0 点赞 0 评论 134 浏览 评分:0.0
C语言联合if语句正常解法 摘要:解题思路:无非就是一个从零开始一个从最大开始,一个递增一个递减一直互相交换字符注意事项:这里面交换字符的中间量记得用char参考代码:#include<stdio.h>#include<string.…… 题解列表 2022年11月01日 0 点赞 0 评论 105 浏览 评分:9.9
1093——字符逆序 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[111]; string str; void fun(char *s…… 题解列表 2022年10月29日 0 点赞 0 评论 93 浏览 评分:0.0
字符逆序C++实现 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string s; get…… 题解列表 2022年10月27日 0 点赞 0 评论 91 浏览 评分:0.0