string字符串的运用 摘要:解题思路:用c++中的string容器存储字符串求出数字和ans,并取余数将余数转城字符类型: int转char:char=int+'0' …… 题解列表 2024年01月23日 0 点赞 0 评论 218 浏览 评分:9.9
1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int num = 0; cin >> num; s…… 题解列表 2024年01月23日 0 点赞 0 评论 410 浏览 评分:0.0
#include <iostream> #include <set> using namespace std; int main() { int n 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <set>using namespace std;int main(){ int n; cin >> …… 题解列表 2024年01月23日 0 点赞 0 评论 115 浏览 评分:0.0
C++1045,小白题解。简单易懂。会简单for循环与函数就能看懂。 摘要:解题思路:利用for循环,算出所输入的数字里面的最大值与最小值,最后将其与其他数字更换位置即可。注意事项:当我们找到最大值最小值时,应该知道这个数值在数组的哪一个位置,这样有利于后续的更换位置。参考代…… 题解列表 2024年01月22日 0 点赞 0 评论 242 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c;…… 题解列表 2024年01月22日 0 点赞 0 评论 191 浏览 评分:0.0
2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x1,y1,x2,y2,x3,y3,a…… 题解列表 2024年01月22日 0 点赞 0 评论 150 浏览 评分:0.0
1669: 求圆的面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>//要用万能头!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!using namesp…… 题解列表 2024年01月22日 1 点赞 0 评论 966 浏览 评分:7.3
三个字符串的排序 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>using namespace std;//自定义函数,实现比较a…… 题解列表 2024年01月22日 0 点赞 0 评论 208 浏览 评分:0.0
2867: 单词的长度 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { string str; …… 题解列表 2024年01月22日 0 点赞 0 评论 148 浏览 评分:0.0
完数的判断(c语言)清晰版 摘要:题目描述:一个数如果恰好等于不包含它本身所有因子之和,这个数就称为"完数"。 例如,6的因子为1、2、3,而6=1+2+3,因此6是"完数"。 编程序找出N之内的所有完数,并按下面格式输出其因子。输入…… 题解列表 2024年01月22日 0 点赞 0 评论 200 浏览 评分:0.0