Posted on 2003-03-05
i have a txt file with this format:
i need to fill a matrix with the following structure:
every pair of numbers represent the number of row and column, for example, if i find the couple 1 23 in the text file, then to the position row 1, column 23, i must add 1 to the value of that single position (i begin with a 50 by 50 matrix full of zeros). But the same should happen when i find a couple 23 1, this is, I only want to fill the upper part of the matrix. Afterwards i need to find the maximum value on the matrix.
Other important thing is that i dont know how many lines i have in the txt file, it is created randomly and every time is has a different number of lines.