基于c++string特性的解法,但在vs上测试无问题,在网页验证过不去 摘要:解题思路:利用c++本身的string 的特性,来完成解答c++对于string字符串是允许直接对字符串本身进行用 [ ] 的方式来访问字符串中的 单个字符,因此,我们只需通过string库内自带的…… 题解列表 2024年11月05日 0 点赞 1 评论 181 浏览 评分:9.9
大一新生用C语言编写的 摘要:解题思路:不知道为啥用scanf,printf就不行注意事项:参考代码:#include<stdio.h>#include<string.h>void fanh(char a[]);//函数的声明in…… 题解列表 2024年11月14日 1 点赞 0 评论 271 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,j=0; scanf("%s",a); for(i…… 题解列表 2024年11月19日 0 点赞 0 评论 381 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main{ public static void main(String[] args){ …… 题解列表 2024年12月02日 0 点赞 0 评论 440 浏览 评分:0.0
字符串反转C语言题解 摘要:解题思路:使用字符串函数strlen获得字符串长度注意事项:记得加上预处理命令#include<string.h>参考代码:#include<stdio.h>#include <string.h>in…… 题解列表 2024年12月25日 0 点赞 0 评论 455 浏览 评分:0.0
多余的string函数 摘要:解题思路:#include<stdio.h> #include<string.h> int main(void) { char a[100]; gets(a); i…… 题解列表 2024年12月28日 0 点赞 0 评论 195 浏览 评分:0.0
初学者思路,简单易懂 摘要:解题思路:从字符数组的两边往中间开始交换注意事项:参考代码: #include<stdio.h> #include<string.h> void fun(char*); int main()…… 题解列表 2024年12月29日 3 点赞 0 评论 431 浏览 评分:10.0
极简[编程入门]自定义函数之字符串反转 摘要:解题思路:无注意事项:无参考代码:s = input()print([s::-1]…… 题解列表 2025年01月10日 1 点赞 0 评论 223 浏览 评分:0.0
C++简单解法 摘要:#include#includeusing namespace std;int str(char a[],char b[]){ int i=0,n; n=strle…… 题解列表 2025年02月28日 0 点赞 0 评论 33 浏览 评分:10.0