题解列表

筛选

c代码记录之自定义函数字符串反转

摘要:解题思路:输入输出做在主函数,自定义函数用于逆序排列字符数组,方法是首尾字符互换注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int main() ……

计算多项式的值:解题思路

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double x,a,b,c,d;    scanf("%lf %lf %……

3001:整数的和题解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a,b,c;    cin>>a>>b>>c;……

超简单的C语言代码实现

摘要:解题思路:请看代码注意事项:无参考代码:#include<stdio.h>#include<string.h>int _asd(char a[1000]){    gets(a);    int l=……

冒泡排序c++

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{     int name;     double s……

使用vector()解题.

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<vector>using namespace std;bool cmp(vector……

矩阵对角求和

摘要:解题思路:1. 首先,声明变量i、j、n、sum1和sum2,它们分别用于控制循环和保存对角线和的结果。2. 通过scanf函数读取用户输入的n,该值表示二维数组的行和列的数量。3. 创建一个大小为n……