Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using map/ creating a hash

Status
Not open for further replies.

tewari68

Programmer
Jan 25, 2005
87
US
Hi,
I am quite new to C++. I have to query a database and load the results of the query into a hash (key/value pair) and then refer to this hash for getting the default values for my application.
I think map function in C++ does this. However I don't no how to use/implement this.
Can anyone guide me to some examples on the net on how to accomplish this or show me some examples how to do this.
Appreciate any help in this regard
Thanks,
Tewari
 
I realise that I posted the question in the wrong place I am not using Visual C++.

I will post it in the non-visual C++ forum.
Anyways thanks for the reply.
Thanks,
Tewari
 
Just in case you're interested, Boost do a hash_map implementation that will work on any compiler. Programming it is similar to the sample code from the MS site I mentioned earlier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top