1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:有个一样的题,要用函数参考代码:#include <iostream> #include <string> using namespace std; int main()…… 题解列表 2022年10月11日 1 点赞 0 评论 485 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int isprime(int a) { if (a <= 1) r…… 题解列表 2022年10月11日 0 点赞 0 评论 262 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:保留三位小数参考代码:#include <iostream> #include <cmath> #include <iomanip> using namespace std;…… 题解列表 2022年10月11日 0 点赞 0 评论 304 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; void func( int a[], int n, int m ) { …… 题解列表 2022年10月11日 0 点赞 0 评论 233 浏览 评分:0.0
数字逆序输出 摘要: #include using namespace std; int main() { int a[10], i, j; for…… 题解列表 2022年10月10日 0 点赞 0 评论 318 浏览 评分:9.9
2832: 第n小的质数 摘要:解题思路:利用f函数得到质数返回给i,并分别按从小到大放到数组中(规模10000)。数组【0】为第1小的质数,所以输出数组[n-1]即是第n小的质数。判断是不是质数函数,如果 为1或0,函数返回假,如…… 题解列表 2022年10月10日 0 点赞 0 评论 525 浏览 评分:8.0
数组插入处理 摘要: #include using namespace std; int main() { int a[10]; int…… 题解列表 2022年10月10日 0 点赞 0 评论 281 浏览 评分:0.0
选 择 排 序 摘要: #include//选择排序 using namespace std; int main() { int a[100], t, i, j; …… 题解列表 2022年10月10日 0 点赞 0 评论 337 浏览 评分:0.0
筛选N以内的素数 摘要: #include using namespace std; int main() { int n,count; cin >> n; …… 题解列表 2022年10月10日 0 点赞 0 评论 309 浏览 评分:0.0
迭代法求平方根 摘要: #include #include #include using namespace std; int main() { floa…… 题解列表 2022年10月10日 0 点赞 0 评论 327 浏览 评分:0.0