最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,j=0; scanf("%s",a); for(i…… 题解列表 2024年11月19日 0 点赞 0 评论 864 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main{ public static void main(String[] args){ …… 题解列表 2024年12月02日 0 点赞 0 评论 856 浏览 评分:0.0
字符串反转C语言题解 摘要:解题思路:使用字符串函数strlen获得字符串长度注意事项:记得加上预处理命令#include<string.h>参考代码:#include<stdio.h>#include <string.h>in…… 题解列表 2024年12月25日 1 点赞 0 评论 1215 浏览 评分:0.0
多余的string函数 摘要:解题思路:#include<stdio.h> #include<string.h> int main(void) { char a[100]; gets(a); i…… 题解列表 2024年12月28日 2 点赞 0 评论 791 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路: 使用getchar( )获取字符; 使用putcahr( )显示字符;注意事项: 输入一个字符串的首地址,可以…… 题解列表 2025年03月07日 1 点赞 0 评论 1328 浏览 评分:0.0
暴力解法--一行代码搞定 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; …… 题解列表 2025年03月17日 2 点赞 0 评论 952 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要: #include #include #include #include #include using namespace std;…… 题解列表 2025年04月03日 1 点赞 0 评论 1460 浏览 评分:0.0
反向遍历法 解题思路:先保存,后逆向输出注意事项:处理换行符:fgets会把输入的回车\n一起读入字符串,必须用str[strcspn(str,"\n")]='\0';把换行符替换为字符串结束符,否则反转后会多一个空行。参考代码:#include#include 题解列表 2026年04月02日 0 点赞 0 评论 294 浏览 评分:0.0 « 12...20212223242526...3637 »