Hi*!
I am working on a DB application. I want to put the retured data into an STL map. I know how to use a map but that has been with one key-value pair.
Something like
Now i want to create map that has for every column a key and respective value from the row . So I'll have for every row a new map & for the whole table an array of maps.PHP Code:typedef std::map<std::string, std::string> SomeMap;
etc etc
How to do it????
Or is there a better way to store data in a diff format???
Secondly whats the difference b/w the map and hash_map????
Any Comments & suggest are most Welcome!Thanks for your time,
Regards,
Usman.




Reply With Quote