I am a beginner at C++. I created a text file with two columns in it. However, there are around 1 million rows and there are many rows that repeat each other. I want to delete the duplicates and count how many duplicates there were making it into a third row. This is what it would look like before and after:
Before:
10 8
11 7
10 8
10 8
15 12
11 7
After:
10 8 3
11 7 2
15 12 1
I don't really know where to start can someone point me in the right direction of what I should be looking up in order to do this?