Name: Anonymous 2011-03-14 14:33
Hi pro`s!
So I need to
1.read a matrix that's 8x6 and is in a file
2.find the biggest element in each line of the matrix
3.find which of the biggest numbers appear in each column 4.and print them
so far my code finds the biggest numbers, but fails at finding how many times they appear
my matrix looks like this
1 2 3 4 5 6
7 8 9 10 11 12
12 6 15 16 17 18
19 12 6 22 23 24
25 26 12 6 29 30
31 32 33 12 6 36
37 38 39 40 12 42
43 44 45 46 47 48
and the code is here:
http://pastebin.com/x9B6BU4R
So I need to
1.read a matrix that's 8x6 and is in a file
2.find the biggest element in each line of the matrix
3.find which of the biggest numbers appear in each column 4.and print them
so far my code finds the biggest numbers, but fails at finding how many times they appear
my matrix looks like this
1 2 3 4 5 6
7 8 9 10 11 12
12 6 15 16 17 18
19 12 6 22 23 24
25 26 12 6 29 30
31 32 33 12 6 36
37 38 39 40 12 42
43 44 45 46 47 48
and the code is here:
http://pastebin.com/x9B6BU4R