1031: [编程入门]自定义函数之字符串反转 摘要:import java.io.*; /** * 使用 StringBuilder 和它的 reverse() 方法 */ public class Main { publ…… 题解列表 2021年12月11日 0 点赞 0 评论 146 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int R(char a[],char b[]){ i…… 题解列表 2021年12月15日 0 点赞 0 评论 286 浏览 评分:0.0
C++代码,使用string库 摘要:解题思路:逆序输出字符串for (int i=str.length()-1;i>=0;i--) cout<<str[i];注意事项:暂时不明参考代码:#include<iostream>#includ…… 题解列表 2021年12月27日 0 点赞 0 评论 198 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:1.依次获取字符串的值,并将非空格的字符用数组接收;2.将数组接收到的字符倒序输出;注意事项:定义数组的类型;循环结构,及退出条件写正确;参考代码:#include<stdio.h>char…… 题解列表 2022年01月17日 0 点赞 0 评论 167 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 逆序即可 摘要:解题思路:逆序即可!!!!!!注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; gets(a); …… 题解列表 2022年02月16日 0 点赞 0 评论 166 浏览 评分:0.0
题目 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项: 1、gets():与scanf("%s",s)相似,但不完全相同,使用scanf("%s",s) 函数输入字符串时存在一个问题,就是如果输入了空格会认为字符串结…… 题解列表 2022年02月27日 0 点赞 0 评论 302 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<iostream>using namespace std;char change(…… 题解列表 2022年03月02日 0 点赞 0 评论 138 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void che(char str[]){ gets(str); for(int i=s…… 题解列表 2022年03月07日 0 点赞 0 评论 109 浏览 评分:0.0
StringBuffer中的reverse 摘要:# ```java public class c1031 { public static void main(String[] args) { // TODO 自动生成的方法…… 题解列表 2022年03月12日 0 点赞 0 评论 164 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:n = input(str())for i in n[::-1]: print(i,end = '')…… 题解列表 2022年04月07日 0 点赞 0 评论 253 浏览 评分:0.0