优质题解 1069: 二级C语言-寻找矩阵最值(不需要使用数组) 摘要:解题思路:通过双层循环来控制横坐标和纵坐标其中,对于max的初始化只需要第一次的时候把输入的值给赋过去就好了对应的代码就是:if (i == 1 && j == 1) max = fabs(…… 题解列表 2021年04月25日 1 点赞 13 评论 5057 浏览 评分:8.8
二级C语言-寻找矩阵最值(C语言) 摘要:解题思路:用两个for输入,if语句判断,标记。注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int …… 题解列表 2021年04月12日 0 点赞 0 评论 534 浏览 评分:0.0
定义数组时下标为变量导致错误 注意事项:定义数组时下标不能为未知的变量:第一遍写的代码将a[n][n]定义在对n取值之前,答案出现问题。因为在定义数组时下标不能为未知的变量,因为在本题中是在全局定义中定义了数组,而编译器在编译时会提前在主存中为数组分配空间,但是因为分配空间数量不确定,导致出错。 题解列表 2021年03月01日 0 点赞 0 评论 1182 浏览 评分:0.0
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int number_1[6][6],i,j,n,max=0,i_1,j_1; scanf(…… 题解列表 2021年02月16日 0 点赞 1 评论 1508 浏览 评分:9.9
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:#include<stdio.h> #include<math.h> int main() { int n,a[10][10]; int i,j,m,k; int max; m=…… 题解列表 2021年02月04日 0 点赞 0 评论 1031 浏览 评分:0.0
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:```c #include #include int main() { int i,j,n,a[6][6],k,m,max; scanf("%d",&n); fo…… 题解列表 2021年02月03日 0 点赞 0 评论 476 浏览 评分:0.0
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,max,a[10][10]; int t,p; scanf("%d",&n); for(i=…… 题解列表 2021年02月03日 0 点赞 3 评论 1182 浏览 评分:9.9
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:解题思路: 注意事项:看清楚所给出条件,n的范围,绝对值最大的元素 参考代码: #include #include int main() { int n,i,j,max=0,x=0,y=…… 题解列表 2021年01月29日 0 点赞 1 评论 1214 浏览 评分:9.0
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:#include<stdio.h> #include <stdlib.h> int main() { int n,x,y,i,j,max=0; int a[7][7]; …… 题解列表 2020年11月30日 0 点赞 0 评论 1054 浏览 评分:9.5
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:#include <stdio.h> #include <math.h> int main() { double arr[6][6],ret = 0; int n, m,…… 题解列表 2020年11月29日 0 点赞 0 评论 632 浏览 评分:0.0