0

for the colum and row, how to fill the space with examcode automatically, below, I must put one by one..

```
/*-------------------
Two dimensional array
-------------------*/
#include<iostream.h>
#include<fstream.h>
#include<iomanip.h>
ifstream infile("STA83EXM.txt");
void main()
{
const int row = 139;
const int column = 139;
int matrix[row] [column];
//**************creates Matrix****************
int num;
for(int i = 0; i<=row-1; i++)
{
for(int j = 0; j<=column-1; j++)
{
infile>>num;
matrix[i][j]=num;
}
}
//***************Prints out Matrix*********************
cout<<"\n\n"<<endl;
cout<<"\t\tColumn:"<<setw(3)<<"1"<<setw(5)<<"2"<<setw(5)<<"3"<<setw(5)<<"4"<<setw(5)<<"5"<<setw(5)<<"6"<<endl;
cout<<"\t\t--------------------------------------"<<endl;
cout<<"\t\tRow 1|\t "<<setw(2)<<matrix[0][0]<<setw(5)<<matrix[0][1]<<setw(5)<<matrix[0][2]<<setw(5)<<
matrix[0][3]<<setw(5)<<matrix[0][4]<<setw(5)<<matrix[0][5]<<endl;
cout<<"\t\t 2|\t "<<matrix[1][0]<<setw(5)<<matrix[1][1]<<setw(5)<<matrix[1][2]<<setw(5)<<
matrix[1][3]<<setw(5)<<matrix[1][4]<<setw(5)<<matrix[1][5]<<endl;
cout<<"\t\t 3|\t "<<matrix[2][0]<<setw(5)<<matrix[2][1]<<setw(5)<<matrix[2][2]<<setw(5)<<
matrix[2][3]<<setw(5)<<matrix[2][4]<<setw(5)<<matrix[2][5]<<endl<<endl;
return;
}
```