Home > Back-end >  C code assignment requests for help!!!!!!
C code assignment requests for help!!!!!!

Time:09-27



Is the code
the two questionsRequest big help!!!!!!!!!!!!!!!
Thank you very much

CodePudding user response:

The first generation of reference, to optimize the
 
#include
using namespace std;

Int main (void)
{
Int arr [4] [5]={{1, 2, 3, 4, 5}, {6,7,8,12,2}, {23,43,12,4,5}, {6,5,6,23,64}};
Int arr1 [20]={0};
Int arr2 [5] [4]={0};
Int I, j, k=0, m, n;
for (i=0; i<4. I++)
{
for(j=0; J<5; J++)
{
Cout & lt; Arr2 [j] [I]=arr [I] [j];
}
Cout & lt; }

for (i=0; i<5; I++)
{
for(j=0; J<4. J++)
{
Arr1=arr2 [k] [I] [j];
k++;
}
}
Cout & lt; for (k=0; K<20; K++)
Cout & lt; Cout & lt;
Cout & lt; <"Please input the row and column of the matrix element:";
Cin & gt;> m;
Cin & gt;> n;
for (k=0; K<20; K++)
{
If (arr1==arr [k] [m - 1]], [n - 1)
Cout & lt; <"Matrix of the first" & lt; <"Column of the elements in the first" linear table & lt; <"Position" & lt; }

return 0;
}

CodePudding user response:

  • Related