A map is much much much much much much much different than an array.
A map is much much much much much much much different than an array.
FWIW you should be including the string header:
Code:#include <string>
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
many tanx , thats definitely because of my lack of knowledge in map( i dont know anything about map , i just needed sth , and it come up to be map! i'll cover the stuff later.
tanx , really tanx , i now understand it , tanx a million for this great example
thanks , forgot to include that, but why does it still compile ? do we have such a thing implemented in iostream header file too?
Highlight Your Codes
The Boost C++ Libraries (online Reference)
Bill Bryson"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
<iostream> might directly or indirectly #include <string>, but you should not rely on that.Originally Posted by Masterx
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Highlight Your Codes
The Boost C++ Libraries (online Reference)
Bill Bryson"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."