1031: [编程入门]自定义函数之字符串反转(python) 摘要:#### 1031: [编程入门]自定义函数之字符串反转 ~~~python def main(): s = input() s = list(s) s.reve…… 题解列表 2024年10月24日 0 点赞 0 评论 169 浏览 评分:9.9
字符串反转 —— 利用“+”可以进行字符串拼接的特性 (Java代码) 摘要:解题思路: 直接利用Java中 “+”符号可以进行字符串拼接操作 的特性,反向遍历字符串拼接即可注意事项:参考代码:import java.util.Scanner; public class …… 题解列表 2024年10月14日 0 点赞 0 评论 88 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[30]; scanf("%s",a); fo…… 题解列表 2024年09月21日 0 点赞 0 评论 156 浏览 评分:0.0
【编程入门】字符串反转(Java版) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年09月21日 0 点赞 0 评论 94 浏览 评分:0.0
字符串与字符的应用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; for(int i=0;i<100;i…… 题解列表 2024年09月10日 0 点赞 0 评论 80 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) {…… 题解列表 2024年08月28日 0 点赞 0 评论 151 浏览 评分:9.9
使用fgets输入字符串然后实现反转 摘要:解题思路:可以定义一个数组循环输入,也可以定义一个数组然后使用字符串输入格式 "%s" 输入,还可以使用gets输入(gets不安全,尽量不用),这里使用fgets输入,fgets函数具有三个参数,第…… 题解列表 2024年07月22日 2 点赞 0 评论 146 浏览 评分:10.0
【编程入门】自定义函数之字符串反转 摘要:参考代码:#include<stdio.h>#include<string.h> int exchange(char a[],char b[]){ int i,l,j = 0; l = s…… 题解列表 2024年06月21日 0 点赞 0 评论 129 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str){ …… 题解列表 2024年06月11日 0 点赞 0 评论 143 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/c++.h>using namespace std;int Reverse(char a[],char b[]){ int i=0,n;…… 题解列表 2024年06月08日 1 点赞 0 评论 348 浏览 评分:9.9