How can i compare each row in 2d array & count how many rows are diff?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyagupta15
    New Member
    • Dec 2018
    • 2

    How can i compare each row in 2d array & count how many rows are diff?

    i have read data from a file and stored in a 2d array,
    now i want to find the number of rows which are different in that 2d array?

    how can i compare and count the number of rows which are diffferent?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Not possible to do in C or C++. There are really only 1d arrays available.

    To find out why please read: https://bytes.com/topic/c/insights/7...rrays-revealed

    Then post again if you still have questions.

    Comment

    • priyagupta15
      New Member
      • Dec 2018
      • 2

      #3
      it iss like checking the number of unique rows in a matrix, my uni project!

      Comment

      • donbock
        Recognized Expert Top Contributor
        • Mar 2008
        • 2427

        #4
        What sort of information is in each matrix cell - integers, floating point numbers, strings, ... ?

        Comment

        Working...