@igorrr37
1812 / 1430 / 214
Регистрация: 21.12.2010
Сообщений: 2,331
|
26.01.2011, 13:44
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
| #include <iostream>
#include <algorithm>
using namespace std;
#define N 3
#define M 4
int main(){
int mat[N][M]={{3,1,2,34},{4,6,22,13},{50,-3,28,-14}};
for_each(mat, mat+N, [](int* mas){cout<<*min_element(mas, mas+M)<<"\n";});
} |
|
1
|