|
-
May 25th, 2007, 02:11 AM
#1
Map Stl
i have a map stl which goes like this---
map<String, int> *l_NetworkMap
i want to access the required m_Msisdn from the NetworkMap.
i have used find() and end() in this manner
map<string, int>::iterator pos;
pos = l_NetworkMap->find(string((char *)m_Msisdn));
if(l_NetworkMap.end() != pos)
{
......................................
/* remaining code */
}
but still i face a problem ..its core dump.
i am deriving this from a proc function which goes like this
refreshnetworkdetails((map<Str... int>) *m_arg)
where in i store all msisdns from the database into the NetworkMap.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|