std::unique() to compare two vectors?

Pages: 12
jlb wrote:
That last '3' has nothing to do with 13, it is being caused by the cout in main() that is printing the number of duplicates you calculated inside the countDuplicate() function.

Ohhh I see what you both mean. Sorry for being so slow (both for responding and learning). :P I was seriously confused but after looking very very closely, I did figure out what you meant.

Thank you all. :) Problem solved.
Last edited on
Topic archived. No new replies allowed.
Pages: 12