By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,572 Members | 946 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,572 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?
Dec 5 '18 #1
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
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.
Dec 6 '18 #2

P: 2
it iss like checking the number of unique rows in a matrix, my uni project!
Dec 6 '18 #3

Expert 100+
P: 2,400
What sort of information is in each matrix cell - integers, floating point numbers, strings, ... ?
Dec 6 '18 #4

Post your reply

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