|
using STL set and vector
|
|
02-18-2010, 08:05 AM
Post: #1
|
|||
|
|||
|
using STL set and vector
Here is a example using set so you don't accept duplicates then transferring it to a vector to be able to sort it because a set is not random access like an list.
PHP Code: /* |
|||
|
02-18-2010, 08:09 AM
Post: #2
|
|||
|
|||
|
RE: using STL set and vector
Interesting example. You used iterators which is great !
There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
02-20-2010, 05:07 PM
Post: #3
|
|||
|
|||
|
RE: using STL set and vector
We have to get some C++ highlighting syntax -.-
"Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
« Next Oldest | Next Newest »
|





