Search:

Type: Posts; User: HarryMin

Search: Search took 0.00 seconds.

  1. Thread: Matrix

    by HarryMin
    Replies
    10
    Views
    1,187

    i.e. I would use MaxRowIndex to find the row to...

    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 :)
  2. Thread: Matrix

    by HarryMin
    Replies
    10
    Views
    1,187

    So in order to get the highest value within a row...

    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?
  3. Thread: Matrix

    by HarryMin
    Replies
    10
    Views
    1,187

    row_count = row_count + table[ row ][ col ]; ...

    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...
  4. Thread: Matrix

    by HarryMin
    Replies
    10
    Views
    1,187

    Cheers :) Now comes the hard bit. I need to...

    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......
  5. Thread: Matrix

    by HarryMin
    Replies
    10
    Views
    1,187

    Apologies - edited first part of reply... Also...

    Apologies - edited first part of reply...

    Also any suggestion for limiting the numbers entered to be between 0 and 3??
  6. Thread: Matrix

    by HarryMin
    Replies
    10
    Views
    1,187

    Matrix

    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...
Results 1 to 6 of 6