| unknownguy (2) | |||
|
Hello, I was wondering how I could possibly organize one vector by placing it into an another. (Note: They are vector of objects). What i have so far is:
This doesn't organize every part of the vector, and sometimes even copies the same guy into the newGuy. Any ideas? | |||
|
|
|||
| moorecm (1802) | |
| What are you trying to do? | |
|
|
|
| unknownguy (2) | |
| Put each "guy" in order according to there "done()" and placing it in "newGuy" | |
|
|
|
| coder777 (2378) | |||
You mean that you want guy unsorted and newGuy sorted?Like so:
See: http://cplusplus.com/reference/algorithm/sort/ You can also sort without the overloaded operator< | |||
|
|
|||