利用指针解决字符数组 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; g…… 题解列表 2023年12月26日 0 点赞 0 评论 269 浏览 评分:0.0
四种方法求解字符串反转 摘要:解题思路:关于sizeof(),strlen(),length(),size()char a[100]:定义一个字符数组(使用sizeof和strlen时需要用char定义字符数组)cin>>a;用于…… 题解列表 2024年01月19日 0 点赞 0 评论 285 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:注意数组类型为char不是int参考代码:#include<stdio.h>#include<string.h>void sort(char arr[100], int a){ …… 题解列表 2024年02月04日 0 点赞 0 评论 212 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转c语言 高清 细节 简单 彩色 摘要:提示:return 0;可以省,不过最好不要省。代码:#include <stdio.h>#include <stdlib.h>int main(void){ char a[1000];//这里可以输…… 题解列表 2024年02月15日 0 点赞 0 评论 338 浏览 评分:0.0
逆序字符串最强办法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void jh(char* a, char* b){ char temp = *a; …… 题解列表 2024年03月08日 0 点赞 0 评论 344 浏览 评分:0.0
自定义函数求字符串反转 摘要:解题思路:双指针求字符串反转注意事项:参考代码:#include<stdio.h>#include<string.h>void reverse(char *arr);void reverse(char…… 题解列表 2024年03月26日 0 点赞 0 评论 264 浏览 评分:0.0
用stl超级简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a,b; cin>>a,b; reverse(…… 题解列表 2024年04月03日 0 点赞 0 评论 366 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[100],b[100]; …… 题解列表 2024年04月25日 0 点赞 0 评论 271 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scan…… 题解列表 2024年05月09日 0 点赞 0 评论 314 浏览 评分:0.0
1031 字符串反转(注意字符串的长度) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char a[1000]; …… 题解列表 2024年05月14日 0 点赞 0 评论 235 浏览 评分:0.0