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