c代码记录之自定义函数字符串反转 摘要:解题思路:输入输出做在主函数,自定义函数用于逆序排列字符数组,方法是首尾字符互换注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int main() …… 题解列表 2023年11月09日 0 点赞 0 评论 131 浏览 评分:0.0
计算多项式的值:解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,a,b,c,d; scanf("%lf %lf %…… 题解列表 2023年11月09日 0 点赞 0 评论 184 浏览 评分:0.0
3001:整数的和题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c;…… 题解列表 2023年11月09日 0 点赞 0 评论 223 浏览 评分:0.0
使用vector数组,能避免输出前导0 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<string>using namespace std;const int N=1e5…… 题解列表 2023年11月09日 0 点赞 0 评论 156 浏览 评分:0.0
超简单的C语言代码实现 摘要:解题思路:请看代码注意事项:无参考代码:#include<stdio.h>#include<string.h>int _asd(char a[1000]){ gets(a); int l=…… 题解列表 2023年11月09日 0 点赞 0 评论 148 浏览 评分:0.0
冒泡排序c++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{ int name; double s…… 题解列表 2023年11月09日 0 点赞 0 评论 493 浏览 评分:0.0
使用vector()解题. 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<vector>using namespace std;bool cmp(vector…… 题解列表 2023年11月09日 0 点赞 0 评论 208 浏览 评分:0.0
[编程入门]链表合并(先用数组输入的数排好序,再传入链表,这样就是合并两个有序的链表,或者定义一个函数给链表节点排序) 摘要:解题思路:注意事项:参考代码:使用结构体数组先将输入的数排好序:#include<stdio.h> #include<malloc.h> #include<stdbool.h> struct N…… 题解列表 2023年11月09日 0 点赞 0 评论 128 浏览 评分:0.0
矩阵对角线求和(二维数组法) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int i=0,j=0; int arr[3][3]; for(i=0;i<3;i++)/…… 题解列表 2023年11月09日 0 点赞 0 评论 171 浏览 评分:0.0
矩阵对角求和 摘要:解题思路:1. 首先,声明变量i、j、n、sum1和sum2,它们分别用于控制循环和保存对角线和的结果。2. 通过scanf函数读取用户输入的n,该值表示二维数组的行和列的数量。3. 创建一个大小为n…… 题解列表 2023年11月09日 0 点赞 0 评论 248 浏览 评分:0.0