C++ Matrix HELP!!!

This is a discussion on C++ Matrix HELP!!! within the C++ Programming forums, part of the General Programming Boards category; Hello. I have the following problem: given a matrix V (n, m). Reverse the order of the matrix in two ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    1

    C++ Matrix HELP!!!

    Hello.
    I have the following problem: given a matrix V (n, m). Reverse the order of the matrix in two rows where amount of numbers are maximum and minimum (in the lines). Print matrix before and after modification.
    Given:
    5 6 "- these are numbers of rows and colums"
    12 -25 45 2 8 10
    -2 -6 15 13 55 -9
    14 15 -5 -9 -8 19
    -1 -2 -3 -4 -5 -6
    8 9 9 9 5 2

    I need only parts were you are counting min and max in the lines and how to change these lines in matrix. Sorry for mistakes. Thanks for your reply.

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,657

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C - access violation
    By uber in forum C Programming
    Replies: 2
    Last Post: 07-08-2009, 02:30 PM
  2. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 05:57 PM
  3. Gauss-Jordan Matrix Inversion in C++
    By Max_Power82 in forum C++ Programming
    Replies: 3
    Last Post: 12-03-2006, 08:31 PM
  4. Matrix and vector operations on computers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 05-11-2004, 07:36 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21