双指针交换法解决字符串逆序 摘要:解题思路:注意事项:参考代码:# define _CRT_SECURE_NO_WARNINGS 1 &n…… 题解列表 2026年07月24日 0 点赞 0 评论 234 浏览 评分:0.0
编写题解 1206: 字符串问题 解题思路:我们的目标是将输入字符串中的字符位置进行颠倒,也就是让原本在首位的字符挪到末尾,原本在末尾的字符挪到首位,依次类推注意事项:字符位置颠倒操作确定交换范围:利用循环来实现字符的两两交换从而达到颠倒的目的。循环条件设为i 题解列表 2024年12月12日 0 点赞 0 评论 787 浏览 评分:0.0 看不懂直接喷我 摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle…… 题解列表 2024年11月11日 0 点赞 1 评论 656 浏览 评分:9.9 字符串的逆置 用两个数组实现字符串的逆置#include#includeintmain(){chars[256],b[256];scanf("%s",s);inti;intlen;len=strlen(s);for(i=0;i 题解列表 2024年03月21日 0 点赞 0 评论 556 浏览 评分:9.9 我奶奶都会 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i; char a[300]; gets(a)…… 题解列表 2023年06月18日 0 点赞 0 评论 1120 浏览 评分:9.9 C++ string类:字符串问题 #C++string类```c++#includeusingnamespacestd;intmain(){strings;getline(cin,s);for(inti=s.size()-1;i>=0;i--){cout 题解列表 2023年06月05日 0 点赞 0 评论 918 浏览 评分:0.0 字符串问题(c语言递归) ```c#include#includevoidswap(char*s1,char*s2);voidreverse(char*strs,intleft,intright);intmain(){charstrs[256]={0};gets(strs);reverse(strs, 题解列表 2023年04月29日 1 点赞 0 评论 881 浏览 评分:9.9 1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[1001]; scanf("%[^\n]",str);…… 题解列表 2023年03月28日 0 点赞 0 评论 529 浏览 评分:9.9 字符串翻转秒解决 摘要:#include #include #include using namespace std; //回文串 int main() { string s1; cin>>s1;…… 题解列表 2022年10月22日 0 点赞 0 评论 531 浏览 评分:0.0 1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); int len=strlen(str); fo…… 题解列表 2022年06月23日 0 点赞 0 评论 524 浏览 评分:0.0 « 1234 »
看不懂直接喷我 摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle…… 题解列表 2024年11月11日 0 点赞 1 评论 656 浏览 评分:9.9
字符串的逆置 用两个数组实现字符串的逆置#include#includeintmain(){chars[256],b[256];scanf("%s",s);inti;intlen;len=strlen(s);for(i=0;i 题解列表 2024年03月21日 0 点赞 0 评论 556 浏览 评分:9.9
我奶奶都会 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i; char a[300]; gets(a)…… 题解列表 2023年06月18日 0 点赞 0 评论 1120 浏览 评分:9.9
C++ string类:字符串问题 #C++string类```c++#includeusingnamespacestd;intmain(){strings;getline(cin,s);for(inti=s.size()-1;i>=0;i--){cout 题解列表 2023年06月05日 0 点赞 0 评论 918 浏览 评分:0.0
字符串问题(c语言递归) ```c#include#includevoidswap(char*s1,char*s2);voidreverse(char*strs,intleft,intright);intmain(){charstrs[256]={0};gets(strs);reverse(strs, 题解列表 2023年04月29日 1 点赞 0 评论 881 浏览 评分:9.9
1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[1001]; scanf("%[^\n]",str);…… 题解列表 2023年03月28日 0 点赞 0 评论 529 浏览 评分:9.9
字符串翻转秒解决 摘要:#include #include #include using namespace std; //回文串 int main() { string s1; cin>>s1;…… 题解列表 2022年10月22日 0 点赞 0 评论 531 浏览 评分:0.0
1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); int len=strlen(str); fo…… 题解列表 2022年06月23日 0 点赞 0 评论 524 浏览 评分:0.0