473,473 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

2 New Member
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
3 1488
weaknessforcats
9,208 Recognized Expert Moderator Expert
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
priyagupta15
2 New Member
it iss like checking the number of unique rows in a matrix, my uni project!
Dec 6 '18 #3
donbock
2,426 Recognized Expert Top Contributor
What sort of information is in each matrix cell - integers, floating point numbers, strings, ... ?
Dec 6 '18 #4

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

Similar topics

1
by: James | last post by:
Access 2003, trying to count the number of records that meet a criteria. According to Help: "In the Database window, click Queries under Objects, and then click New on the database window...
1
by: Krish | last post by:
How do you find out the number of rows in the array {Array} I have ..... thanks
0
by: Ireneus Broncel | last post by:
I have a class which reads Groups and Users from ActiveDirectory. The Problem is, that i have about 10000 rows as product. When I am trying to read the "memberOf" Objects out of this field i get...
10
by: Steve Atkins | last post by:
I have a large table (potentially tens or hundreds of millions of rows) and I need to extract some number of these rows, defined by an integer primary key. So, the obvious answer is select *...
27
by: pkirk25 | last post by:
Assume an array of structs that is having rows added at random. By the time it reaches your function, you have no idea if it has a few hundred over over 10000 rows. When your function recieves...
9
by: bill | last post by:
I am sure there must be an easy way to determine the number of rows in a table, but I can't find it. I appreciate the courtesy and patience ng members have shown this mysql novice. bill
5
by: RC- | last post by:
Hi everyone, I have been searching and searching for an answer to this question using Google and what not; I have not been able to find a "clear cut" answer. OK, now the question: I have a...
2
by: jimrand | last post by:
Hi I am using Access 2007. How can I display to a user in a message box how many rows were imported when they click an import command button from a form? This is my code to produce the import...
20
by: Atrisa | last post by:
Hi everyone; I have a file with one column the elements of which are separated by commas (,). The column has many rows, as in below: 45,56,890 67,92,4502 76,367,89 67,92,4502 67,92,4502...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.