寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int i=0,j=0; int n=0,max=0,h…… 题解列表 2023年11月09日 0 点赞 0 评论 595 浏览 评分: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 评论 999 浏览 评分:8.7
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:1. 首先,导入<stdio.h>头文件,该头文件包含了输入输出函数scanf和printf的声明。2. 在main函数中,声明了一些变量: - i和j分别用于循环计数。 - n表示…… 题解列表 2023年11月09日 0 点赞 0 评论 924 浏览 评分:9.9
矩阵对角求和 解题思路:1.首先,声明变量i、j、n、sum1和sum2,它们分别用于控制循环和保存对角线和的结果。2.通过scanf函数读取用户输入的n,该值表示二维数组的行和列的数量。3.创建一个大小为n×n的二维数组arr。4.使用嵌套的for循环, 题解列表 2023年11月09日 0 点赞 0 评论 650 浏览 评分: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 评论 601 浏览 评分:0.0
[编程入门]链表合并(先用数组输入的数排好序,再传入链表,这样就是合并两个有序的链表,或者定义一个函数给链表节点排序) 摘要:解题思路:注意事项:参考代码:使用结构体数组先将输入的数排好序:#include<stdio.h> #include<malloc.h> #include<stdbool.h> struct N…… 题解列表 2023年11月09日 0 点赞 0 评论 486 浏览 评分:0.0
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10]; gets(a); for (int…… 题解列表 2023年11月09日 0 点赞 0 评论 385 浏览 评分:9.9
超简单的C语言代码实现 摘要:解题思路:请看代码注意事项:无参考代码:#include<stdio.h>#include<string.h>int _asd(char a[1000]){ gets(a); int l=…… 题解列表 2023年11月09日 0 点赞 0 评论 474 浏览 评分:0.0
计算多项式的值:解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,a,b,c,d; scanf("%lf %lf %…… 题解列表 2023年11月09日 0 点赞 0 评论 627 浏览 评分:0.0
水仙花数判断简单易懂(c语言详细代码) 摘要:解题思路:首先拿到所有三位数,再将每个三位数拆分算出立方和,最后 比较输出水仙花数注意事项:参考代码:#include<stdio.h> #include<math.h> int main() {…… 题解列表 2023年11月09日 0 点赞 0 评论 542 浏览 评分:9.9