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

C / C++ / MFC

 
AnswerRe: no_input comes into reality Pin
CPallini31-Dec-06 11:02
mveCPallini31-Dec-06 11:02 
QuestionIE7 settings Pin
Waldermort30-Dec-06 20:52
Waldermort30-Dec-06 20:52 
AnswerRe: IE7 settings Pin
Michael Dunn30-Dec-06 21:50
sitebuilderMichael Dunn30-Dec-06 21:50 
QuestionHow do I have a "Splitter Functionality" without using CSplitterWind ? [modified] Pin
erajsri30-Dec-06 18:32
erajsri30-Dec-06 18:32 
AnswerRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
Mark Salsbery31-Dec-06 5:43
Mark Salsbery31-Dec-06 5:43 
GeneralRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
erajsri31-Dec-06 15:36
erajsri31-Dec-06 15:36 
AnswerRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
Cristian Amarie2-Jan-07 4:03
Cristian Amarie2-Jan-07 4:03 
Questionunary minus in backwards for-loop question [modified] Pin
FocusedWolf30-Dec-06 17:00
FocusedWolf30-Dec-06 17:00 
for (int i = length - 1; i > -1 ; i--)
{
}

for (int i = length - 1; i >= 0; i--)
{
}

I always used to think the bottom way was slower then the top because i saw "i >= 0" as being two different checks being done on i.

For this reason I thought doing "i > -1" was better cause it was just one comparison... but today i just noticed that -1 might be an additional operation being done in each iteration of the for-loop like "...is i greater then (what is the negative of 1)".

So which is the faster way? :P

EDIT: Hmm maybe it still is the first way that is faster cause the negative number might be evaluated at compile-time?
AnswerRe: unary minus in backwards for-loop question Pin
Michael Dunn30-Dec-06 18:16
sitebuilderMichael Dunn30-Dec-06 18:16 
AnswerRe: unary minus in backwards for-loop question Pin
John M. Drescher30-Dec-06 18:17
John M. Drescher30-Dec-06 18:17 
GeneralRe: unary minus in backwards for-loop question Pin
FocusedWolf30-Dec-06 19:07
FocusedWolf30-Dec-06 19:07 
QuestionHow to get a dialog size by ID? Pin
hanlei000000000930-Dec-06 16:01
hanlei000000000930-Dec-06 16:01 
AnswerRe: How to get a dialog size by ID? Pin
hanlei000000000930-Dec-06 16:14
hanlei000000000930-Dec-06 16:14 
AnswerRe: How to get a dialog size by ID? Pin
prasad_som1-Jan-07 17:24
prasad_som1-Jan-07 17:24 
QuestionNeed some help working with JPEGs... Pin
CoffeeAddict1930-Dec-06 12:06
CoffeeAddict1930-Dec-06 12:06 
AnswerRe: Need some help working with JPEGs... Pin
Joe Woodbury30-Dec-06 15:03
professionalJoe Woodbury30-Dec-06 15:03 
AnswerRe: Need some help working with JPEGs... Pin
Hamid_RT31-Dec-06 5:49
Hamid_RT31-Dec-06 5:49 
AnswerRe: Need some help working with JPEGs... Pin
Mark Salsbery31-Dec-06 5:56
Mark Salsbery31-Dec-06 5:56 
GeneralRe: Need some help working with JPEGs... Pin
CoffeeAddict1931-Dec-06 7:05
CoffeeAddict1931-Dec-06 7:05 
AnswerRe: Need some help working with JPEGs... Pin
ThatsAlok31-Dec-06 18:17
ThatsAlok31-Dec-06 18:17 
QuestionHelp with voice input from microphone Pin
Commickey30-Dec-06 9:51
Commickey30-Dec-06 9:51 
AnswerRe: Help with voice input from microphone Pin
Joan M30-Dec-06 23:12
professionalJoan M30-Dec-06 23:12 
GeneralRe: Help with voice input from microphone Pin
Commickey1-Jan-07 5:43
Commickey1-Jan-07 5:43 
AnswerRe: Help with voice input from microphone Pin
Mark Salsbery31-Dec-06 6:07
Mark Salsbery31-Dec-06 6:07 
Questionhelp for error Pin
davvid30-Dec-06 9:36
davvid30-Dec-06 9:36 

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.