[编程入门]自定义函数之字符串反转(函数版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int i;char T1(){ char a[100]; gets(a);int n=…… 题解列表 2022年05月06日 0 点赞 0 评论 210 浏览 评分:0.0
用数组与for循环解题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 100void oppo(char sz[],int m){ int j; for(j=m-1;j>=0;j--)…… 题解列表 2022年05月07日 0 点赞 0 评论 161 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转(利用切片解决) 摘要:解题思路:注意事项:参考代码:def main(): a = input() print(a[::-1])main()…… 题解列表 2022年05月08日 0 点赞 0 评论 181 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:因为要倒序这个字符串,所以我们可以把他当做倒序输出注意事项:注意是从s.length()-1开始,到i>=0结束参考代码:#include<bits/stdc++.h> using nam…… 题解列表 2022年05月09日 0 点赞 0 评论 166 浏览 评分:0.0
自定义函数之字符串反转 (c++的string 简单) 摘要:解题思路:就用字符串倒过来输出就可以了。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>…… 题解列表 2022年05月09日 0 点赞 0 评论 163 浏览 评分:0.0
挺容易理解的程序 摘要:解题思路:先去空格(32) 再逆序 注意事项:字符串s限制80字符以内 可以自行修改参考代码:#include <stdio.h> #include <string.h> void qu32(ch…… 题解列表 2022年05月11日 0 点赞 0 评论 213 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; for(int …… 题解列表 2022年05月21日 0 点赞 0 评论 126 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转(c++) 摘要:解题思路:先定义一个字符串,再反向输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ string n; cin>>…… 题解列表 2022年05月23日 0 点赞 0 评论 414 浏览 评分:9.9
自定义函数之字符串反转,C++解题 摘要:解题思路:调用C++自带的reverse函数注意事项:头文件algorithm参考代码:#include <iostream>#include<algorithm>using namespace st…… 题解列表 2022年06月07日 0 点赞 0 评论 115 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#includeint main() { char ch[265],c; int i=0; while((c=getchar())!=EOF){ if(c…… 题解列表 2022年06月10日 0 点赞 0 评论 112 浏览 评分:0.0