A map is much much much much much much much different than an array.
Printable View
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>
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?
<iostream> might directly or indirectly #include <string>, but you should not rely on that.Quote:
Originally Posted by Masterx