Hi Experts,
i want to delcare a multimap int -> char*
is it possible ?
currently i declare it like this
typedef std::multimap< int, string , std::less< int > > mmid;
mmid collocs1;
i get an error:
c:\documents and settings\user\my documents\courses\textmining\tdm\tdm-0.0.1\vcpp\flexfeatureextraction\freqtest.cpp(68) : error C2039: 'value_types' : is not a member of 'multimap<int,class std::basic_string<char,struct std::char_traits<char>,class
at the line:
collocs1.insert( mmid::value_types( 30, "hello"
);
what could be possibly be wrong with the declaration or i have to enclose the char*
in a class and then insert it ??
Thanks in advance.
Ruby
i want to delcare a multimap int -> char*
is it possible ?
currently i declare it like this
typedef std::multimap< int, string , std::less< int > > mmid;
mmid collocs1;
i get an error:
c:\documents and settings\user\my documents\courses\textmining\tdm\tdm-0.0.1\vcpp\flexfeatureextraction\freqtest.cpp(68) : error C2039: 'value_types' : is not a member of 'multimap<int,class std::basic_string<char,struct std::char_traits<char>,class
at the line:
collocs1.insert( mmid::value_types( 30, "hello"
what could be possibly be wrong with the declaration or i have to enclose the char*
in a class and then insert it ??
Thanks in advance.
Ruby