1040: [编程入门]实数的打印 AC代码 摘要:```cpp #include using namespace std; int main() { cout n; cout …… 题解列表 2021年08月21日 0 点赞 0 评论 831 浏览 评分:9.9
两种方法(C++) 摘要:解题思路:注意事项:参考代码:1.#include<iostream> #include <algorithm> #include <string> using namespace std;…… 题解列表 2021年08月21日 0 点赞 0 评论 201 浏览 评分:0.0
字符串反转,只需定义一个数组 摘要:解题思路: 逆序,循环输出注意事项:参考代码: #include<iostream> #include<cstring> using namespace std; int main(){ …… 题解列表 2021年08月19日 0 点赞 0 评论 190 浏览 评分:0.0
1003: [编程入门]密码破译 摘要:解题思路:由China变成Glmre可知:原来的字母由它后面的第4个所代替。那么我们就可以声明五个变量,然后输入一下,把五个字符变量的ASCII码值+4,最后输出即可。(https://baike.b…… 题解列表 2021年08月19日 0 点赞 1 评论 2958 浏览 评分:8.0
编写题解 1206: 字符串问题(c++) 摘要:解题思路:相同的字符串进行逆转,用两个不同的变量i,j标记,i记录串尾位置,j记录串头位置,用个for循环就好参考代码: #include <iostream>#inclu…… 题解列表 2021年08月19日 0 点赞 0 评论 319 浏览 评分:0.0
1116: IP判断(C++代码) 摘要:#include <iostream> #include <string> using namespace std; //判断ip是否合法 bool isLegal(string i…… 题解列表 2021年08月19日 0 点赞 0 评论 246 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 AC代码 摘要:```cpp #include using namespace std; int get_letter_num(string s_1) { int j = 0; for (int i…… 题解列表 2021年08月18日 0 点赞 0 评论 477 浏览 评分:9.9
编写题解 1034: [编程入门]自定义函数之数字分离 AC代码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char letter; while (cin >> le…… 题解列表 2021年08月18日 0 点赞 0 评论 471 浏览 评分:9.9
计算一个整数N的阶乘 题解+函数+冷知识 摘要:解题思路:个人认为用数组做方便,写着方便a[i]=a[i-i]*icout<<a[n];注意事项:0!=1参考代码:献丑了~,本来想用递归的,结果内存超限失败了。亮代码!!!#include<bits…… 题解列表 2021年08月18日 0 点赞 1 评论 312 浏览 评分:6.5
《C语言考试练习题_保留字母》题解 代码仅10行~ 摘要:题目背景:说真的,这题不值黄题!看到过后觉得是一道大水题解题思路:algorithm是个好东西,里面有个叫“isalpha”的函数可以用来判断是否为字母,用法为isalpha(_CharT)注意事项:…… 题解列表 2021年08月17日 0 点赞 0 评论 412 浏览 评分:9.9