Mar 6, 2012 at 7:20am Mar 6, 2012 at 7:20am UTC
I need to use a map [and possibly an iterator] to traverse a vector and change the priority of an object. Can someone explain how to do so?
Mar 6, 2012 at 10:59am Mar 6, 2012 at 10:59am UTC
First you need to find a map of the right vector. Once you do that you can look up the address of your object, get in your car, drive over and change it's priority.
Mar 7, 2012 at 1:58am Mar 7, 2012 at 1:58am UTC
I don't know how to implement a map and have it search through a vector. I understand the general idea, but not how to actually code it.
Mar 7, 2012 at 9:14am Mar 7, 2012 at 9:14am UTC
Generally, containers don't search containers.
I understand the general idea
Do tell.