Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:14
_Flaviu8-Jan-14 1:14 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 1:33
professionalJochen Arndt8-Jan-14 1:33 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:44
_Flaviu8-Jan-14 1:44 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 2:13
professionalJochen Arndt8-Jan-14 2:13 
GeneralRe: File time issue [solved] Pin
_Flaviu9-Jan-14 2:11
_Flaviu9-Jan-14 2:11 
GeneralRe: File time issue [solved] Pin
Jochen Arndt9-Jan-14 3:30
professionalJochen Arndt9-Jan-14 3:30 
QuestionIncrement and Decrement Operators Pin
tgsb6-Jan-14 20:57
tgsb6-Jan-14 20:57 
AnswerRe: Increment and Decrement Operators PinPopular
Richard MacCutchan6-Jan-14 22:00
mveRichard MacCutchan6-Jan-14 22:00 
These operators merely add (inc) or subtract (dec) 1 from the item in question. If the operator is used in the postfix position (i++) then the original value is returned. If the operator is used in the prefix position (--i) then the new value is returned. Thus:
C++
int i = 10;
int result;
result = i++;  // result equals 10, i equals 11
result = ++i;  // result equals 12, i equals 12
result = i--;  // result equals 12, i equals 11
result = --i;  // result equals 10, i equals 10

// note do not use expressions such as
result = ++i + i++; // results undefined

Veni, vidi, abiit domum

GeneralRe: Increment and Decrement Operators Pin
Suk@nta7-Jan-14 0:27
Suk@nta7-Jan-14 0:27 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 0:35
mveRichard MacCutchan7-Jan-14 0:35 
GeneralRe: Increment and Decrement Operators Pin
Marco Bertschi7-Jan-14 1:27
protectorMarco Bertschi7-Jan-14 1:27 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 2:48
mveRichard MacCutchan7-Jan-14 2:48 
GeneralRe: Increment and Decrement Operators Pin
Marco Bertschi7-Jan-14 9:41
protectorMarco Bertschi7-Jan-14 9:41 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 21:55
mveRichard MacCutchan7-Jan-14 21:55 
GeneralRe: Increment and Decrement Operators Pin
David Crow7-Jan-14 16:43
David Crow7-Jan-14 16:43 
GeneralRe: Increment and Decrement Operators Pin
Ron Beyer7-Jan-14 17:27
professionalRon Beyer7-Jan-14 17:27 
GeneralRe: Increment and Decrement Operators Pin
Suk@nta7-Jan-14 19:27
Suk@nta7-Jan-14 19:27 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 21:59
mveRichard MacCutchan7-Jan-14 21:59 
GeneralRe: Increment and Decrement Operators Pin
Stefan_Lang10-Jan-14 2:49
Stefan_Lang10-Jan-14 2:49 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan10-Jan-14 3:33
mveRichard MacCutchan10-Jan-14 3:33 
AnswerMessage Closed Pin
7-Jan-14 0:28
Suk@nta7-Jan-14 0:28 
GeneralRe: Increment and Decrement Operators Pin
OriginalGriff8-Jan-14 1:59
mveOriginalGriff8-Jan-14 1:59 
GeneralRe: Increment and Decrement Operators Pin
Suk@nta9-Jan-14 18:17
Suk@nta9-Jan-14 18:17 
GeneralRe: Increment and Decrement Operators Pin
OriginalGriff9-Jan-14 22:10
mveOriginalGriff9-Jan-14 22:10 
GeneralRe: Increment and Decrement Operators Pin
Suk@nta10-Jan-14 3:52
Suk@nta10-Jan-14 3:52 

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.