摘要:
1 /*用字符数组输出钻石图像*/ 2 #include 3 int main(void) 4 { 5 static char c[][5]={{' ',' ','*'},{' ','*',' ','*'},{'*',' ',' ',' ','*'},\ 6 {' ','*',' ','*'},{' ',' ' 阅读全文
摘要:
1 /*有一个3X4的矩阵,要求编程序以求出其中值最大的那个数,及其下标*/ 2 #include 3 int main(void) 4 { 5 int i,j,row=0,colum=0,max; 6 int a[3][4]={{1,2,3,4},{9,8,7,6},{-10,10,-5,2}}; 7 max=a[0][0]; 8 for (i=0;imax)12 {13 max=a[i][j];14 row=i;15 colum=j;16... 阅读全文