Click here to Skip to main content
15,890,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resize controls in c++ win 32 Pin
David Crow3-May-10 8:37
David Crow3-May-10 8:37 
GeneralRe: Resize controls in c++ win 32 Pin
Randor 3-May-10 9:03
professional Randor 3-May-10 9:03 
GeneralRe: Resize controls in c++ win 32 Pin
David Crow3-May-10 9:11
David Crow3-May-10 9:11 
GeneralRe: Resize controls in c++ win 32 Pin
Randor 3-May-10 9:30
professional Randor 3-May-10 9:30 
GeneralRe: Resize controls in c++ win 32 Pin
David Crow3-May-10 10:29
David Crow3-May-10 10:29 
QuestionI want to display a Images or Icons on second column using CListCtrl Pin
D.Manivelan3-May-10 3:18
D.Manivelan3-May-10 3:18 
AnswerRe: I want to display a Images or Icons on second column using CListCtrl Pin
«_Superman_»3-May-10 7:08
professional«_Superman_»3-May-10 7:08 
QuestionMultimap (STL) equal_range function Pin
AkashAg3-May-10 1:26
AkashAg3-May-10 1:26 
Hi,

I have a doubt regarding multimap::equal_range function for the following program.
int main ()
{
  multimap<char,int> mymm;
  multimap<char,int>::iterator it,it1,it2;
  pair<multimap<char,int>::iterator,multimap<char,int>::iterator> ret;

  mymm.insert(std::pair<const char,int>('a',10));
  mymm.insert(std::pair<const char,int>('b',20));
  mymm.insert(std::pair<const char,int>('b',30));
  mymm.insert(std::pair<const char,int>('c',40));
  mymm.insert(std::pair<const char,int>('b',50));
  mymm.insert(std::pair<const char,int>('c',60));
  mymm.insert(std::pair<const char,int>('d',70));

  cout << "mymm contains:\n";
  for (char ch='a'; ch<='d'; ch++)
  {
    cout << ch << " =>";
    ret = mymm.equal_range(ch);
    it1 = ret.first;
    it2 = ret.second;
    cout << (*it1).second << "     " << (*it2).second << endl;
    for (it=ret.first; it!=ret.second; ++it)
      cout << " " << (*it).second;
    cout << endl;
  }

  return 0;
}


It is giving following output:

mymm contains:
a =>10     20
 10
b =>20     40
 20 30 50
c =>40     70
 40 60
d =>70     70



What I am not getting is the o/p for 'b'. I think it should be
b =&gt;20     60
 20 30 50


Please revert.

BR,
Akash
AnswerRe: Multimap (STL) equal_range function Pin
CPallini3-May-10 2:08
mveCPallini3-May-10 2:08 
AnswerRe: Multimap (STL) equal_range function Pin
Stephen Hewitt3-May-10 5:00
Stephen Hewitt3-May-10 5:00 
Questioncrasing in CAsyncSocket Accept Pin
Member 36537513-May-10 1:06
Member 36537513-May-10 1:06 
QuestionRe: crasing in CAsyncSocket Accept Pin
David Crow3-May-10 3:00
David Crow3-May-10 3:00 
AnswerRe: crasing in CAsyncSocket Accept Pin
Member 36537513-May-10 3:55
Member 36537513-May-10 3:55 
GeneralRe: crasing in CAsyncSocket Accept Pin
Rajesh R Subramanian3-May-10 4:26
professionalRajesh R Subramanian3-May-10 4:26 
QuestionProblems reading Bitmaps Pin
Manfr3d3-May-10 1:02
Manfr3d3-May-10 1:02 
AnswerRe: Problems reading Bitmaps Pin
Cedric Moonen3-May-10 1:08
Cedric Moonen3-May-10 1:08 
GeneralRe: Problems reading Bitmaps Pin
Manfr3d3-May-10 1:27
Manfr3d3-May-10 1:27 
GeneralRe: Problems reading Bitmaps Pin
Jonathan Davies3-May-10 2:16
Jonathan Davies3-May-10 2:16 
GeneralRe: Problems reading Bitmaps Pin
Manfr3d3-May-10 5:17
Manfr3d3-May-10 5:17 
QuestionHow to Convert from console application with .C files to MFC based application Pin
manoharbalu2-May-10 20:26
manoharbalu2-May-10 20:26 
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
KingsGambit2-May-10 20:51
KingsGambit2-May-10 20:51 
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
CPallini2-May-10 21:15
mveCPallini2-May-10 21:15 
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
Cedric Moonen2-May-10 21:22
Cedric Moonen2-May-10 21:22 
AnswerRe: How to Convert from console application with .C files to MFC based application Pin
Rajesh R Subramanian2-May-10 22:57
professionalRajesh R Subramanian2-May-10 22:57 
GeneralRe: How to Convert from console application with .C files to MFC based application Pin
CPallini3-May-10 21:19
mveCPallini3-May-10 21:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.