字符串反转 —— 利用“+”可以进行字符串拼接的特性 (Java代码) 摘要:解题思路: 直接利用Java中 “+”符号可以进行字符串拼接操作 的特性,反向遍历字符串拼接即可注意事项:参考代码:import java.util.Scanner; public class …… 题解列表 2024年10月14日 0 点赞 0 评论 448 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[30]; scanf("%s",a); fo…… 题解列表 2024年09月21日 0 点赞 0 评论 535 浏览 评分:0.0
【编程入门】字符串反转(Java版) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年09月21日 0 点赞 0 评论 475 浏览 评分: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 评论 413 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 ```javaimportjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);Stringstr=sc.next();StringnewStr="";f 题解列表 2024年08月28日 0 点赞 0 评论 514 浏览 评分:9.9
使用fgets输入字符串然后实现反转 摘要:解题思路:可以定义一个数组循环输入,也可以定义一个数组然后使用字符串输入格式 "%s" 输入,还可以使用gets输入(gets不安全,尽量不用),这里使用fgets输入,fgets函数具有三个参数,第…… 题解列表 2024年07月22日 2 点赞 0 评论 635 浏览 评分: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 评论 464 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str){ …… 题解列表 2024年06月11日 0 点赞 0 评论 473 浏览 评分: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 评论 758 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:def dcvi(m): for i in range(len(m)): print(m[len(m)-1-i],end='')m=i…… 题解列表 2024年06月03日 0 点赞 0 评论 499 浏览 评分:9.9