(C++)剪刀石头布(数组实现) 摘要:解题思路:二维数组存胜负平结果注意事项:参考代码:#include <iostream> using namespace std; int main() { int ap[3][3…… 题解列表 2023年01月01日 0 点赞 0 评论 401 浏览 评分:0.0
1200: 回文串 摘要:```cpp #include #include using namespace std; int main() { char ch[255]; bool falg=tr…… 题解列表 2023年01月01日 0 点赞 0 评论 690 浏览 评分:9.9
1201: 回文数(一) 摘要:```cpp #include #include using namespace std; bool is_huiwen(int n) { char a[100]; bo…… 题解列表 2023年01月01日 0 点赞 0 评论 552 浏览 评分:9.9
1202: 多输入输出练习1 摘要:```cpp #include using namespace std; int main() { int x,max; while(cin>>x) { …… 题解列表 2023年01月01日 0 点赞 0 评论 479 浏览 评分:9.9
1203: 多输入输出练习2 摘要:注意事项:这里的PI必须要保留4位多一位或少一位都会出错 ```cpp #include #include #define PI 3.1415 using namespace std; i…… 题解列表 2023年01月01日 0 点赞 0 评论 416 浏览 评分:9.9
字符串分类统计 十分十分十分简单的方法(c语言) 摘要:解题思路:1.输出字母个数2.输出数字个数3.输出空格个数4.输出其他字符个数注意事项:参考代码:#include<stdio.h> #include<string.h> void fun(cha…… 题解列表 2023年01月01日 0 点赞 0 评论 345 浏览 评分:9.9
1204: 大小写转换 摘要:放心,题目的End of file其实没什么用,可以不处理 ```cpp #include #include using namespace std; int main() { …… 题解列表 2023年01月01日 0 点赞 0 评论 517 浏览 评分:9.9
运用指针交换两个整型数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void swap(int* a, int* b){ int t = *a;//引入中间变量,将*a的值保存到t中 *a = *b; *…… 题解列表 2023年01月01日 0 点赞 0 评论 569 浏览 评分:9.9
(c语言)详细解读 摘要:解题思路:数组对应编号取反注意事项:我自己想的,还有不少可以优化的,注释很详细的解释了我的代码参考代码:#include"stdio.h"void main(){ unsigned int h…… 题解列表 2023年01月02日 0 点赞 0 评论 389 浏览 评分:0.0
双指针法求解此题 摘要:解题思路: 核心思路为: 1. 首先初始化两个字符串指针,分别指向字符串A、B的开头(后称A指针和B指针)。 2. 比较A、B指针的指向值是否相等,若相等则双指针后…… 题解列表 2023年01月02日 0 点赞 0 评论 369 浏览 评分:0.0