|
-
January 15th, 2004, 10:08 AM
#1
How to obtain key n data of a map <Key, Data>
hi ,
i am a newbie in STL.
I want to access members of a map without the iterator.
for eg :
char na[] = { 'a', 't', 's'};
map<char*, char> mapOfChar_Char;
mapOfChar_Char["first"] = na[0];
mapOfChar_Char["second"] = na[1];
mapOfChar_Char["third"] = na[2];
Now i want to obtain the listing of all the key and the values.
How do i do it.
Thanks in advance.
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
|