自定义函数之字符串反转 摘要:解题思路: 使用getchar( )获取字符; 使用putcahr( )显示字符;注意事项: 输入一个字符串的首地址,可以…… 题解列表 2025年03月07日 1 点赞 0 评论 1182 浏览 评分:0.0
暴力解法--一行代码搞定 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; …… 题解列表 2025年03月17日 2 点赞 0 评论 777 浏览 评分:0.0
C++:vector容器简单使用方法_练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std ;void ko( vector<…… 题解列表 2025年03月26日 0 点赞 0 评论 550 浏览 评分:8.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要: #include #include #include #include #include using namespace std;…… 题解列表 2025年04月03日 1 点赞 0 评论 1300 浏览 评分:0.0
一行代码解决 摘要:解题思路:第一步通过input()函数获取用户输入的字符串(如输入 “abc”);第二步利用 Python 字符串切片[::-1]反转字符串,切片步长为 - 1 表示从字符串末尾向开头遍历,实现反转(…… 题解列表 2025年10月26日 2 点赞 0 评论 414 浏览 评分:10.0
1031字符串反转 摘要:解题思路:注意事项:参考代码:#include"stdio.h"#include"string.h"int main(){ char …… 题解列表 2025年11月25日 1 点赞 0 评论 1387 浏览 评分:7.3
反向遍历法 摘要:解题思路:先保存,后逆向输出注意事项:处理换行符:fgets 会把输入的回车 \n 一起读入字符串,必须用 str[strcspn(str, "\n")] = '\0…… 题解列表 2026年04月02日 0 点赞 0 评论 77 浏览 评分:0.0