Click here to Skip to main content
15,902,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC OpenGL Invalidate Flickering Pin
Roger Allen27-Sep-11 6:23
Roger Allen27-Sep-11 6:23 
QuestionShowHTMLDialog not working in Windows 7 Pin
doug2514-Sep-11 4:00
doug2514-Sep-11 4:00 
AnswerRe: ShowHTMLDialog not working in Windows 7 Pin
Chris Meech14-Sep-11 6:07
Chris Meech14-Sep-11 6:07 
GeneralRe: ShowHTMLDialog not working in Windows 7 Pin
doug2514-Sep-11 7:39
doug2514-Sep-11 7:39 
GeneralRe: ShowHTMLDialog not working in Windows 7 Pin
Chris Meech14-Sep-11 8:27
Chris Meech14-Sep-11 8:27 
GeneralRe: ShowHTMLDialog not working in Windows 7 Pin
doug2514-Sep-11 8:59
doug2514-Sep-11 8:59 
Questionindex of member of a map? Pin
zon_cpp14-Sep-11 3:16
zon_cpp14-Sep-11 3:16 
AnswerRe: index of member of a map? Pin
«_Superman_»14-Sep-11 3:31
professional«_Superman_»14-Sep-11 3:31 
You can increment a counter in a loop.
But why do you need this.
std::map always works on the key and so you must not use the index to perform any operations on the map.

Here is something you could do -
map<int, string> num;
int j = 0;
for (auto i = num.begin(); i != num.end(); ++i, ++j)
{
	if ((*i).first == 5)
		cout << j << endl;
}

Don't know if there is any other way to do this.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C

AnswerRe: index of member of a map? Pin
Chris Losinger14-Sep-11 3:37
professionalChris Losinger14-Sep-11 3:37 
QuestionWaitForSingleObject Pin
john563213-Sep-11 23:41
john563213-Sep-11 23:41 
AnswerRe: WaitForSingleObject Pin
CPallini14-Sep-11 0:12
mveCPallini14-Sep-11 0:12 
GeneralRe: WaitForSingleObject Pin
john563214-Sep-11 0:25
john563214-Sep-11 0:25 
GeneralRe: WaitForSingleObject Pin
CPallini14-Sep-11 0:39
mveCPallini14-Sep-11 0:39 
GeneralRe: WaitForSingleObject Pin
Albert Holguin16-Sep-11 4:10
professionalAlbert Holguin16-Sep-11 4:10 
QuestionCHKBOOK sample Pin
_Flaviu13-Sep-11 21:12
_Flaviu13-Sep-11 21:12 
AnswerRe: CHKBOOK sample Pin
Richard MacCutchan13-Sep-11 21:29
mveRichard MacCutchan13-Sep-11 21:29 
GeneralRe: CHKBOOK sample Pin
_Flaviu15-Sep-11 6:30
_Flaviu15-Sep-11 6:30 
GeneralRe: CHKBOOK sample Pin
Richard MacCutchan15-Sep-11 8:01
mveRichard MacCutchan15-Sep-11 8:01 
GeneralRe: CHKBOOK sample Pin
_Flaviu15-Sep-11 19:35
_Flaviu15-Sep-11 19:35 
GeneralRe: CHKBOOK sample Pin
Richard MacCutchan15-Sep-11 22:41
mveRichard MacCutchan15-Sep-11 22:41 
QuestionChange path in Additional Include Directories. Is that possible? Pin
tagopi13-Sep-11 19:13
tagopi13-Sep-11 19:13 
AnswerRe: Change path in Additional Include Directories. Is that possible? Pin
Richard MacCutchan13-Sep-11 21:25
mveRichard MacCutchan13-Sep-11 21:25 
GeneralRe: Change path in Additional Include Directories. Is that possible? Pin
tagopi13-Sep-11 21:56
tagopi13-Sep-11 21:56 
AnswerRe: Change path in Additional Include Directories. Is that possible? Pin
Albert Holguin16-Sep-11 4:30
professionalAlbert Holguin16-Sep-11 4:30 
QuestionDebug VS2005 application Pin
DanYELL13-Sep-11 10:04
DanYELL13-Sep-11 10:04 

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.