题目 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项: 1、gets():与scanf("%s",s)相似,但不完全相同,使用scanf("%s",s) 函数输入字符串时存在一个问题,就是如果输入了空格会认为字符串结…… 题解列表 2022年02月27日 0 点赞 0 评论 531 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 逆序即可 摘要:解题思路:逆序即可!!!!!!注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; gets(a); …… 题解列表 2022年02月16日 0 点赞 0 评论 418 浏览 评分:0.0
题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:1.将 String 转为 StringBuilder2.使用 StringBuilder 自带的 reverse() 方法倒置字符串3.使用构造方法 String() 将倒置后的字符串转化…… 题解列表 2022年02月05日 0 点赞 0 评论 695 浏览 评分:9.9
Java 题解简易实现 摘要:import java.util.*; import java.io.*; public class A { public static void main(String[] args) …… 题解列表 2022年01月25日 0 点赞 0 评论 375 浏览 评分:9.9
[编程入门]自定义函数之字符串反转 摘要:解题思路:1.依次获取字符串的值,并将非空格的字符用数组接收;2.将数组接收到的字符倒序输出;注意事项:定义数组的类型;循环结构,及退出条件写正确;参考代码:#include<stdio.h>char…… 题解列表 2022年01月17日 0 点赞 0 评论 401 浏览 评分:0.0
字符倒序排列 摘要:解题思路主要还是明白string.h用法注意事项:看好字符长度参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; gets…… 题解列表 2022年01月15日 0 点赞 0 评论 476 浏览 评分:9.9
C++代码,使用string库 摘要:解题思路:逆序输出字符串for (int i=str.length()-1;i>=0;i--) cout<<str[i];注意事项:暂时不明参考代码:#include<iostream>#includ…… 题解列表 2021年12月27日 0 点赞 0 评论 376 浏览 评分:0.0
随便写写,看看就行 摘要:解题思路:瞎写的注意事项:参考代码:#include<stdio.h> char b[200];char* fanzhuan(char *p){ int i=0; while(*p) { p++;i+…… 题解列表 2021年12月23日 0 点赞 0 评论 449 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int R(char a[],char b[]){ i…… 题解列表 2021年12月15日 0 点赞 0 评论 479 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:import java.io.*; /** * 使用 StringBuilder 和它的 reverse() 方法 */ public class Main { publ…… 题解列表 2021年12月11日 0 点赞 0 评论 354 浏览 评分:0.0