自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> #include <complex.h> // 计算并输出实数根的函数 void r…… 题解列表 2023年11月10日 0 点赞 0 评论 277 浏览 评分:0.0
糖果游戏(c代码) 摘要:解题思路:注意事项:代码中的除法运算可能会导致整数溢出,因为数组的每个元素都是一个int类型的整数。如果除数为3的整数结果大于int类型的最大值(2147483647),则可能会导致整数溢出。参考代码…… 题解列表 2023年11月10日 0 点赞 0 评论 358 浏览 评分:9.9
循环控制,汽水瓶 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int test1(int n) { return n / 3;}int test2(int n) { retu…… 题解列表 2023年11月10日 0 点赞 0 评论 229 浏览 评分:0.0
优质题解 用switch解自定义函数之字符提取 摘要:解题思路:在函数内部,定义了一个整型变量`i`并初始化为0。`i`将用于记录在`ch2`数组中插入的位置。接下来是一个`while`循环,循环条件是`*ch1`指向的字符不是空字符`\0`。在循环体内…… 题解列表 2023年11月10日 1 点赞 6 评论 2494 浏览 评分:9.7
(大整数减法)C语言思路简单,易懂!!! 理解万岁 超级好理解 &_& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>void change(char n[],int m){ //将数字字符逆序 int i…… 题解列表 2023年11月09日 0 点赞 0 评论 325 浏览 评分:0.0
矩阵最大值 摘要:解题思路:1. 导入所需的头文件 `stdio.h` 和 `math.h`。2. 在 `main()` 函数中声明并初始化变量 `i` 和 `j`,它们将用于迭代二维数组的行和列。3. 声明变量 `m…… 题解列表 2023年11月09日 0 点赞 0 评论 376 浏览 评分:9.9
C语言(尺取法(同向扫描)+冒泡排序) 摘要:```c #include /*尺取法(同向扫描):i和j方向相同,都从头到尾,速度不同,如让j跑i前,j跑到100m距离滴同时i跑10m距离,j再回到i的位置,再跑,以此类推,直到i到100m距…… 题解列表 2023年11月09日 0 点赞 0 评论 277 浏览 评分:10.0
Java计算浮点数相除的余数 摘要:解题思路:先转换字符串,之后使用remainder方法求余注意事项:参考代码:import java.math.BigDecimal;import java.util.Scanner;public c…… 题解列表 2023年11月09日 0 点赞 0 评论 515 浏览 评分:9.9
寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int i=0,j=0; int n=0,max=0,h…… 题解列表 2023年11月09日 0 点赞 0 评论 219 浏览 评分:9.9
判断第几天! 摘要:#include<stdio.h>int yue1[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int yue2[12]={31,29,31,30,31,30…… 题解列表 2023年11月09日 0 点赞 0 评论 664 浏览 评分:8.7