two-dimensional array

Hello, someone can write this program for me?
Given two-dimensional array T(m,n), that element values are different, primary data is stored in a text file. Found the maximum value. Print primary array, found values with their line numbers.
Please someone help i need this very much.
No.

Edit: We'll be happy to help after you've tried.
Last edited on
#include <iostream>
#include <conio.h>
#include <math.h>

int main()
{
const int M = 4;
const int N = 5
int i, j;

int T [M][N] = {2, 10, 5, 7, 8,
6, 3, 1, 6, 8,
4, 9, 9, 14, 4,
5, 3, 5, 16, 7};
it's my beggining what's next?
primary data is stored in a text file.

If it's stored in a text file, wouldn't you need to open a file and read the data in, like so?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
const M=4;
const N=5;
int T [M] [N];
call stream handle;
input file stream - handle ("name.text");
check for file=open{
for loop M
for loop N
read the int
store the int accordingly
}
}
}
carry on from there


Something along those lines?
Topic archived. No new replies allowed.