题解 1031: [编程入门]自定义函数之字符串反转 摘要: #include #include #include void turn(char str[]) { int a,i; …… 题解列表 2021年07月03日 0 点赞 0 评论 345 浏览 评分:0.0
字符串反转 摘要:解题思路:gets输入,puts输出,用exchange自定义函数来进行反转,原来的和反转之后的放在两个不同的字符数组中。注意事项:i=strlen(ch1)时,i的位置是空格,如果直接输出,就输不出…… 题解列表 2021年05月27日 0 点赞 0 评论 353 浏览 评分:6.0
[编程入门]自定义函数之字符串反转-Java-咸鱼 摘要:解题思路:使用StringBuffer方法反转字符串.注意事项:参考代码:public static void main(String[] args) { Scanner in = new Scan…… 题解列表 2021年05月19日 0 点赞 0 评论 372 浏览 评分:9.9
简单方式实现 逆序输出 摘要:解题思路:逆序输出注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[100…… 题解列表 2021年04月08日 0 点赞 0 评论 588 浏览 评分:0.0
容易理解的C语言代码 摘要:解题思路:输出的时候倒过来输出就可以了注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[100]…… 题解列表 2021年04月06日 0 点赞 0 评论 268 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(java) 摘要: import java.util.Scanner; public class 字符串反转 { public static void main(String[] args) { …… 题解列表 2021年03月23日 0 点赞 0 评论 384 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void exchange(char a[],char b[]){ int i,l,j=0; …… 题解列表 2021年03月13日 0 点赞 0 评论 326 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args)…… 题解列表 2021年03月13日 0 点赞 0 评论 312 浏览 评分:9.9
C语言自定义函数之字符串反转(递归实现) 摘要:解题思路:将键盘输入的字符串从放到数组中去,然后只需要通过对数组的逆序即可实现对字符串的逆序,本解法将使用递归将数组反置,递归的思想是大事化小,假如有10000位,那么我们每一次递归只需要交换最左边的…… 题解列表 2021年03月12日 0 点赞 0 评论 757 浏览 评分:8.0
栈的最简单的应用——字符逆序输出 摘要:#include <stdio.h>#define SIZE 512int top = 0;char stack[SIZE];void push(char ch);char pop(void);int…… 题解列表 2021年03月11日 0 点赞 0 评论 494 浏览 评分:9.9