The line in green causes all your problems. I can't give you a solution (yet), because I haven't got a clue what you expect that line to do :) So enlighten me!
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
Why don't you just do a search on this forum for finding duplicates?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
i did. but the main thing i want is to find out what is wrong with my code and what i can do to improve on it.
Well for one, your code is horribly obfuscated.
What is the point of bitflag1 = 0x001 ? etc
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
I suggest you search the forums for finding duplicates in c++.
Use the code you have found to, identify which column/row has duplicate entries and then move on from there.
There are many ways to find duplicates.
One is to sort the values first. That way all the duplicates will all be next to one another.
Or you might be able to use a std::map.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439