标签:col main class print etc tchar pre getch min
1 #include<stdio.h> 2 #define M 4 3 #define N 3 4 int main() 5 { 6 int i, j, row = 0, colum = 0, min; 7 int a[M][N] = { { 1, 12, 3 }, { 4, 25, 6 }, { 17, 8, 19 }, { 0, 11, 12 } }; 8 min = a[0][0]; 9 for (i = 0; i <= 3; i++) 10 { 11 for (j = 0; j <= 2; j++) 12 { 13 if (a[i][j] < min) 14 { 15 min = a[i][j]; 16 row = i; 17 colum = j; 18 } 19 20 } 21 } 22 printf("min=%d,row=%d,colum=%d\n", min, row, colum); 23 getchar(); 24 return 0; 25 }
标签:col main class print etc tchar pre getch min
原文地址:https://www.cnblogs.com/liugangjiayou/p/11601204.html