Dear engineers
I have problem about the array 3X4 that pulled my hair for almost a week. I did search help, books, exercises and some net resource but seem did not help much. Here is the question: how do I make computer to understand that is " My_array [i][j]" when i input data from key board and use cout to print out the matrix 3x4. Also my second cout is to list the largest value from that matrix. Please direct if i made any mistake. Any help or suggestion is greatly appreciated. Thanks in advance for reading this message. Here is my code and this is the best of my knowledge:
#include <iostream.h>
#include <iomanip.h>
int main()
{
cout << "please enter three sets of five number!\n\n";
double check_num = 0; // initialize num, array's row and col
const int arrayrow = 3;
const int arraycol = 5;
int matrix[arrayrow][arraycol];
for (int x = 0; x < arrayrow; x ++){
for (int j = 0; j < arraycol; j++)
cin >>matrix [x][j];
if (check_num < matrix [x][j])
check_num = matrix[x][j];
cout << matrix[x][j]<<' ';
cout << "The biggest number is: "<<check_num;
cout << endl;
}
return 0;
}