cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
use map to find object
use map to find object
Mar 6, 2012 at 7:20am UTC
Jeremiah234
(16)
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 UTC
cire
(8284)
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 UTC
Jeremiah234
(16)
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 UTC
cire
(8284)
Generally, containers don't search containers.
I understand the general idea
Do tell.
Topic archived. No new replies allowed.