Help Wanted

maps in C++ – mellonamin

mellonamin

Member

Posts: 119
From: Maryville, TN, United States
Registered: 11-16-2004
Can anyone help me out with maps in C++? I can't find any information about them in any of my books except that they are containers in the STL...I have no idea what their syntax is or anything. I want to use them to store name/password pairs for a game I am making...is this a good idea or should i use some other method? Also, is it possible to assign more than one value to each key so I can have name/password/race/gender/etc...keys?

------------------
Vita sine Ieso est mors.
Life without Jesus is death.

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
Here's some links:

http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=379
http://cis.stvincent.edu/swd/stl/maps/maps.html
http://wwwasd.web.cern.ch/wwwasd/lhc++/RW/stdlibcr/map_8018.htm

------------------
Brian

mellonamin

Member

Posts: 119
From: Maryville, TN, United States
Registered: 11-16-2004
thanks brian_t!

------------------
Vita sine Ieso est mors.
Life without Jesus is death.

en972

Member

Posts: 562
From: NOT TELLING!
Registered: 08-27-2004
What are maps?

------------------
Hard work often pays off in time, but lazieness always pays off now.

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
The first links does a good job of describing what maps are, and provides a good example. If you have any specific questions about maps, we'll try to answer them.

------------------
Brian