1739: 成绩排序 sort+结构体 包看懂 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体xs,包含三个成员变量:字符串x、整数y和整数z stru…… 题解列表 2024年12月08日 0 点赞 0 评论 241 浏览 评分:0.0
二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[51];int b[51];int main(){ a[0]=-100; for(int i=0; i<51; …… 题解列表 2024年12月08日 0 点赞 0 评论 462 浏览 评分:0.0
: 二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double h(double x){ if(x<0) { return fa…… 题解列表 2024年12月08日 0 点赞 0 评论 506 浏览 评分:0.0
1728: 字符串的查找删除 来看看吧 万一看懂了呢 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; void f(string x){ // 遍历字符串的每一个字符 …… 题解列表 2024年12月08日 1 点赞 0 评论 142 浏览 评分:0.0
C语言 指针解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n=0 ; int a[110]={0} ; int *p=a ; …… 题解列表 2024年12月08日 1 点赞 0 评论 383 浏览 评分:10.0
第k极值(C语言) 摘要:解题思路:1. cmp 函数: 这是一个用于比较两个整数大小的比较函数,用于 qsort 函数进行快速排序。它返回两个指针所指向的整数的差值,用于确定排序的顺序。2. f 函数:用于判断一…… 题解列表 2024年12月08日 0 点赞 0 评论 213 浏览 评分:0.0
金明的预算方案 摘要:解题思路:这段代码的详细解释1. Max 函数:这是一个用于比较两个长整型数并返回较大值的函数。2. main 函数:定义了多个长整型数组 w (物品重量)、 v (物品价值)、 z1 、 …… 题解列表 2024年12月08日 0 点赞 0 评论 134 浏览 评分:0.0
迭代法求平方根 自定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double a[100];double h(double a[],double n){ int i; a[0]=n/2.0…… 题解列表 2024年12月08日 1 点赞 0 评论 782 浏览 评分:0.0
1156: C语言训练-阿姆斯特朗数--讲好两个空格的呢? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int j,sum; for (int i = 2;i<1000;i++) {…… 题解列表 2024年12月08日 0 点赞 0 评论 276 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a; double sum1 = 1; scanf("%d",&a);…… 题解列表 2024年12月08日 0 点赞 0 评论 177 浏览 评分:0.0