[编程入门]自定义函数之字符串反转 摘要:解题思路:#include<stdio.h>#include<string.h>int main(){ char a[15]={'0'}; scanf("%s", &a);…… 题解列表 2023年03月01日 0 点赞 0 评论 92 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:逆序,就是将最后一个元素与第一个交换,倒数第二个元素与第二个交换……因此用两个循环控制变量,一个从首元素开始,另一个从末元素开始,再用一个临时变量作为交换的中介,就可以实现逆序了。用指针将数…… 题解列表 2023年03月02日 0 点赞 0 评论 113 浏览 评分:0.0
charAt之字符串反转 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年03月07日 0 点赞 0 评论 95 浏览 评分:0.0
偷了个懒直接调用c++的库函数reverse了 摘要:解题思路:直接偷懒了注意事项:个人建议如果用c写尽量注意char *的结束标志,char []没有结束标志参考代码:#include<bits/stdc++.h> using namespace st…… 题解列表 2023年03月15日 0 点赞 0 评论 107 浏览 评分:0.0
题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int main(){ int i,n; char a[n]; gets(a); …… 题解列表 2023年03月20日 0 点赞 0 评论 127 浏览 评分:0.0
函数字符串的反转 摘要:```c #include #include void f(char a[100]); int main() { char a[100]; gets(a); f(a); } …… 题解列表 2023年04月20日 0 点赞 0 评论 163 浏览 评分:0.0
自定义函数之字符串反转 摘要:#include #include int main(){ char a[100]; int i,j; gets(a);//从输入缓存中读取多个字符,遇到回车符时,结…… 题解列表 2023年05月04日 0 点赞 0 评论 132 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 int …… 题解列表 2023年06月06日 0 点赞 0 评论 111 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:如题所述注意事项:参考代码:#include <stdio.h>int main(){ char a[50]; int i=0; int count=0; scanf("%s", a); f…… 题解列表 2023年06月12日 0 点赞 0 评论 94 浏览 评分:0.0
简单解法,小白做的 自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[201];//注意范围 int i; …… 题解列表 2023年06月14日 0 点赞 0 评论 154 浏览 评分:0.0