18 years, 2 months ago
Highlights
18 years, 2 months ago
18 years, 2 months ago
Hi. I need help with manipulating an unsorted std::list object to end up with only one of each duplicate element and all lone elements removed. Example: 1, 1, 2, 3, 3,…
18 years, 2 months ago
Sorry SiCrane. We posted at the same time :)I think your method is better because it can work even when this list has 2 elements... also it looks better :PThank You!
18 years, 2 months ago
Thanks guys. I figured it out.I copied the unique() function and edited it to return the list without any lone elements. Then I can call unique() on it and I have my result…
18 years, 2 months ago
Latest Activity
See all in DiscussionsSorry SiCrane. We posted at the same time :)I think your method is better because it can work even when …
18 years, 2 months ago
Thanks guys. I figured it out.I copied the unique() function and edited it to return the list without any lone …
18 years, 2 months ago
Wow! Speedy replies :)Thanks. But how do I remove the lone elements before calling unique()?
18 years, 2 months ago