Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Different Output Pin
Mike Dimmick18-Jul-07 2:30
Mike Dimmick18-Jul-07 2:30 
GeneralRe: Different Output Pin
John R. Shaw18-Jul-07 3:40
John R. Shaw18-Jul-07 3:40 
GeneralRe: Different Output Pin
iddqd51518-Jul-07 5:53
iddqd51518-Jul-07 5:53 
GeneralRe: Different Output Pin
John R. Shaw18-Jul-07 6:19
John R. Shaw18-Jul-07 6:19 
GeneralRe: Different Output Pin
iddqd51518-Jul-07 6:26
iddqd51518-Jul-07 6:26 
GeneralRe: Different Output Pin
John R. Shaw18-Jul-07 6:41
John R. Shaw18-Jul-07 6:41 
QuestionRe: Different Output Pin
David Crow18-Jul-07 7:34
David Crow18-Jul-07 7:34 
AnswerRe: Different Output Pin
John R. Shaw18-Jul-07 7:53
John R. Shaw18-Jul-07 7:53 
For one, in the original question ‘j’ would have been equal to 3. Second if ‘i’ was a class instead of an ‘int’, then the overhead could be expensive in C++. But you already know that. Always prefer ‘++i’ to ‘i++’.

Just add support for ‘++’ (pre & post) to any class and you will see the problem, the compiler does not optimize that away.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

QuestionReverse Spin Pin
Anorexic Tribble18-Jul-07 1:58
Anorexic Tribble18-Jul-07 1:58 
AnswerRe: Reverse Spin Pin
John R. Shaw18-Jul-07 2:15
John R. Shaw18-Jul-07 2:15 
GeneralRe: Reverse Spin Pin
Anorexic Tribble18-Jul-07 2:34
Anorexic Tribble18-Jul-07 2:34 
GeneralRe: Reverse Spin Pin
John R. Shaw18-Jul-07 3:25
John R. Shaw18-Jul-07 3:25 
AnswerRe: Reverse Spin Pin
David Crow18-Jul-07 2:36
David Crow18-Jul-07 2:36 
QuestionI have problem in Video Capture from web camera Pin
yaminisridaran18-Jul-07 1:56
yaminisridaran18-Jul-07 1:56 
QuestionRe: I have problem in Video Capture from web camera Pin
Mark Salsbery18-Jul-07 6:12
Mark Salsbery18-Jul-07 6:12 
QuestionChanging the Parent of ActiveX Control at runtime Pin
naveen.V18-Jul-07 1:41
naveen.V18-Jul-07 1:41 
Questionrestrict control being active by default Pin
kiranin18-Jul-07 1:05
kiranin18-Jul-07 1:05 
QuestionRe: restrict control being active by default Pin
David Crow18-Jul-07 2:39
David Crow18-Jul-07 2:39 
QuestionRe: restrict control being active by default Pin
Hamid_RT25-Jul-07 8:40
Hamid_RT25-Jul-07 8:40 
QuestionVista and caption bar Pin
jung-kreidler18-Jul-07 0:38
jung-kreidler18-Jul-07 0:38 
AnswerRe: Vista and caption bar Pin
Paresh Chitte18-Jul-07 19:36
Paresh Chitte18-Jul-07 19:36 
QuestionAccess Violation. Pin
p_18-Jul-07 0:30
p_18-Jul-07 0:30 
AnswerRe: Access Violation. Pin
Cedric Moonen18-Jul-07 0:50
Cedric Moonen18-Jul-07 0:50 
GeneralRe: Access Violation. Pin
p_18-Jul-07 0:57
p_18-Jul-07 0:57 
GeneralRe: Access Violation. Pin
Cedric Moonen18-Jul-07 1:06
Cedric Moonen18-Jul-07 1:06 

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.