423,846 Members | 2,048 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,846 IT Pros & Developers. It's quick & easy.

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

P: 2
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?
1 Week Ago #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 9,196
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.
1 Week Ago #2

P: 2
it iss like checking the number of unique rows in a matrix, my uni project!
1 Week Ago #3

Expert 100+
P: 2,385
What sort of information is in each matrix cell - integers, floating point numbers, strings, ... ?
1 Week Ago #4

Post your reply

Sign in to post your reply or Sign up for a free account.