皮皮学,免费搜题
登录
搜题
【简答题】
定义一个3×4的二维数组,随机产生20个整型数据(1000以内)并存储在该数组中,找出该数组的最大元素以及所在位置,输出数组的每行最大值和每列最大值。 #include "stdio.h" #include "stdlib.h" #include "time.h" #define M 3 //M用于表示数组行数 #define N 4 //N用于表示数组列数 void main() { int a[M][N], b[M], c[N], max, row, col, i, j; printf("随机产生的二维数组为:\n"); srand(time(NULL)); //双重循环遍历二维数组进行元素的输入 for (i=0; i max) { max = a[i][j]; ; col = j; } } } //查找行最大值 for (i=0; i b[i]) b[i] = a[i][j]; } } //查找列最大值 for (j=0; j c[j]) ; } } printf("最大值为%d,位置:第%d行%d列\n", a[row][col], row+1, col+1); for (i=0; i
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】She will be angry if you ______ her while she is sleeping. [     ]
A.
worry
B.
disturb
C.
trouble
D.
puzzle
【单选题】习近平总书记指出:“人民民主是社会主义的生命。没有民主就没有社会主义,就没有社会主义的现代化,就没有中华民族伟大复兴。”这是因为 1人民当家作主是社会主义民主政治的本质特征 2我国社会主义民主是最广泛、最真实、最管用的民主3我国社会主义民主与党的领导并驾齐驱、相互制约4我国社会主义民主有选举民主这一特有形式和独特优势
A.
①②
B.
③④
C.
①②④
D.
①③④
【单选题】youngster
A.
老年人
B.
成年人
C.
当地人
D.
年轻人
【单选题】---Would you mind not_____ noise? Alice is sleeping. –---Sorry, I didn’t know. I________ she was awake.
A.
make, think
B.
making, thought
C.
making, think
D.
make, thought
【单选题】youngster
A.
青年,孩子
B.
青春
C.
更小的
D.
渴望
【单选题】【B17】
A.
woman
B.
man
C.
boy
D.
youngster
【单选题】She will be angry if you ______ her while she is sleeping.
A.
disgust
B.
disturb
C.
disappoint
D.
dismiss
【简答题】在下列各句的空白处填入一个最恰当的单词。 1.  Don't make _____. The baby is sleeping. 2.  She is married, because she wears a ring on her ring _____. 3.  In China, an old saying goes like this, 'Kill two birds with one __...
【简答题】Can they be asked now to synchronize our work and family lives? (para.7)
【单选题】She will be angry if you her while she is sleeping.
A.
distress
B.
disturb
C.
district
D.
distribute
相关题目: