二维数组中行最大值中的最小值
来源:互联网 发布:linux查看目录 编辑:程序博客网 时间:2024/05/21 09:32
#include<iostream>#include<vector>#include<list>#include<set>#include<algorithm>using namespace std;int main(){ int max,min; int a[3][4] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { cout << a[i][j] << "\t"; } cout << endl; } for (int i = 0; i < 3; i++) { max = a[i][0]; for (int j = 0; j < 4; j++) { if (max < a[i][j]); max = a[i][j]; } if (i == 0) min = max; else { if (min > max) min = max; } cout << min << endl; } system("pause"); return 0;}
0 0
- 二维数组中行最大值中的最小值
- 求二维数组中的最大值 最小值及其下标
- 数组中的最大值最小值
- 二维数组的最大值和最小值
- 转:二维数组的最大值和最小值
- 寻找数组中的最大值最小值
- 求二维数组中的最小值
- 求二维数组中的最大值
- 寻找数组中的最大值和最小值
- 同时获取数组中的最大值和最小值
- 2.10 寻找数组中的最大值和最小值
- STL-求数组中的最大值,最小值
- 寻找数组中的最大值和最小值
- 寻找数组中的最大值和最小值
- 寻找数组中的最大值和最小值
- 寻找数组中的最大值和最小值
- 寻找数组中的最大值和最小值
- 寻找数组中的最大值和最小值
- 秒杀多线程第三篇 原子操作 Interlocked系列函数
- redis使用(二):五种键值类型
- 黑马程序员-----java基础(多线程)
- Android进阶之数据存储+Preferences
- opencv7-ml之统计模型
- 二维数组中行最大值中的最小值
- 动态选路协议
- CoCreateInstance of OLE control failed
- Swift学习笔记2——基本类型和基本运算
- 搜狗16招聘机试题 加密解密算法
- Js-函数回调
- 解决虚拟路径的上下文路径问题
- 字符串的压缩(面试题)
- apache集成php5.6方法分享