i.e. I would use MaxRowIndex to find the row to search through, then do a very similar thing as to searching through the totals of the rows? If that makes sense :)
Type: Posts; User: HarryMin
i.e. I would use MaxRowIndex to find the row to search through, then do a very similar thing as to searching through the totals of the rows? If that makes sense :)
So in order to get the highest value within a row I would do very similar thing... but I would need to use MaxRowIndex and then search through the matrix?
row_count = row_count + table[ row ][ col ];
So where exactly should I put the max row count variable - I think its the table[ row ][ col ] that throws me...
Cheers :)
Now comes the hard bit. I need to compare the totals of the of the 8 rows, then display the row with the highest total. Would the best way of doing this be to sort them into an array......
Apologies - edited first part of reply...
Also any suggestion for limiting the numbers entered to be between 0 and 3??
Hi there guys,
I am trying to write a C++ program which takes in a float from a user, between 0 and 3 and stores it in a matrix. I then need to compare the totals of each row, then state which row...