Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.65K
1 Posted Topic
Re: hash map in STL
The namespaceof hash_map is not std. Check the include file <hash_map>. [QUOTE=karthik.c;819652]hi again,im having some problem while coding with hash_map my coding was like this: [code=c++] #include<iostream> #include<hash_map> using namespace std; int main() { typedef pair<int,int>make_pair; hash_map<int,int>::iterator hmp0_iter; hash_map<int,int>hmp0; hmp0.insert(make_pair(1,78)); hmp0.insert(make_pair(3,34)); for(hmp0_iter=hmp0.begin();hmp0_iter!=hmp0.end();hmp0_iter++) { cout<<(*hmp0_iter).second<<' '; } cout<<endl; return(0); } [/code] …
The End.
alvinyang