Click here to Skip to main content
16,011,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Constructors Pin
Rajkumar R10-Jun-07 19:34
Rajkumar R10-Jun-07 19:34 
AnswerRe: Constructors Pin
Stephen Hewitt11-Jun-07 18:41
Stephen Hewitt11-Jun-07 18:41 
QuestionWhat is in-class constant? Pin
tom groezer10-Jun-07 11:30
tom groezer10-Jun-07 11:30 
AnswerRe: What is in-class constant? Pin
Mark Salsbery10-Jun-07 11:50
Mark Salsbery10-Jun-07 11:50 
QuestionC++ gotchas Pin
tom groezer10-Jun-07 11:12
tom groezer10-Jun-07 11:12 
AnswerRe: C++ gotchas Pin
CPallini10-Jun-07 11:19
mveCPallini10-Jun-07 11:19 
GeneralRe: C++ gotchas Pin
tom groezer10-Jun-07 11:22
tom groezer10-Jun-07 11:22 
GeneralRe: C++ gotchas Pin
Christian Graus10-Jun-07 11:59
protectorChristian Graus10-Jun-07 11:59 
tom groezer wrote:
will a[j] = i++ be appropriate?


yes, because the variable you use as an index, is not being modified on the same line of code. i++ means, return i, then increment it. a[j] will definately contain the old value of i. The thing is that when i is incremented is not clear. Does a[i] = i++ set the a at the index equal to the old i, or the new i ? It may be defined ( I don't think it is, I think it's compiler specific ), but it's at least hard to read.



Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: C++ gotchas Pin
CPallini10-Jun-07 20:57
mveCPallini10-Jun-07 20:57 
GeneralRe: C++ gotchas Pin
Roger Stoltz10-Jun-07 21:57
Roger Stoltz10-Jun-07 21:57 
GeneralRe: C++ gotchas Pin
CPallini10-Jun-07 22:11
mveCPallini10-Jun-07 22:11 
GeneralRe: C++ gotchas Pin
Roger Stoltz10-Jun-07 23:51
Roger Stoltz10-Jun-07 23:51 
GeneralRe: C++ gotchas Pin
CPallini11-Jun-07 0:22
mveCPallini11-Jun-07 0:22 
Questionbasic question Pin
smzhaq10-Jun-07 9:42
smzhaq10-Jun-07 9:42 
AnswerRe: basic question Pin
Christian Graus10-Jun-07 12:24
protectorChristian Graus10-Jun-07 12:24 
GeneralRe: basic question Pin
smzhaq10-Jun-07 22:23
smzhaq10-Jun-07 22:23 
QuestionGetNamedSecurityInfo problem Pin
KellyR10-Jun-07 9:21
KellyR10-Jun-07 9:21 
AnswerRe: GetNamedSecurityInfo problem Pin
KellyR10-Jun-07 18:05
KellyR10-Jun-07 18:05 
GeneralRe: GetNamedSecurityInfo problem Pin
Mark Salsbery10-Jun-07 18:13
Mark Salsbery10-Jun-07 18:13 
QuestionUsing Microsoft Visual C++ 2005EE Compile Error Pin
Blekk10-Jun-07 8:20
Blekk10-Jun-07 8:20 
AnswerRe: Using Microsoft Visual C++ 2005EE Pin
Christian Graus10-Jun-07 12:27
protectorChristian Graus10-Jun-07 12:27 
GeneralRe: Using Microsoft Visual C++ 2005EE Pin
Blekk11-Jun-07 2:46
Blekk11-Jun-07 2:46 
Questionplease show me the way to read file text quickly Pin
Pham duc an10-Jun-07 7:09
Pham duc an10-Jun-07 7:09 
AnswerRe: please show me the way to read file text quickly Pin
Matthew Faithfull10-Jun-07 8:21
Matthew Faithfull10-Jun-07 8:21 
Questionoutput to printer Pin
KARFER10-Jun-07 4:32
KARFER10-Jun-07 4:32 

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.