Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to hide the vertical scrollbar of listbox Pin
Cool_Dev23-Feb-11 21:27
Cool_Dev23-Feb-11 21:27 
QuestionCPtrList AddTail problem [SOLVED] Pin
Anu_Bala23-Feb-11 17:42
Anu_Bala23-Feb-11 17:42 
AnswerRe: CPtrList AddTail problem Pin
Cool_Dev23-Feb-11 18:11
Cool_Dev23-Feb-11 18:11 
GeneralRe: CPtrList AddTail problem Pin
Anu_Bala23-Feb-11 19:17
Anu_Bala23-Feb-11 19:17 
Question--i not equal to i - 1 ??? Pin
Cristoff23-Feb-11 11:06
Cristoff23-Feb-11 11:06 
AnswerRe: --i not equal to i - 1 ??? Pin
PJ Arends23-Feb-11 11:31
professionalPJ Arends23-Feb-11 11:31 
GeneralRe: --i not equal to i - 1 ??? Pin
Cristoff23-Feb-11 11:47
Cristoff23-Feb-11 11:47 
AnswerRe: --i not equal to i - 1 ??? Pin
Peter_in_278023-Feb-11 12:23
professionalPeter_in_278023-Feb-11 12:23 
Being a bit pedantic here (but it's necessary!)...

Since the order of evaluation is not defined by the language spec, the compiler writer is free to choose, so your second example
sum(--number) + number; could come out either way (but number will always wind up decremented). There are lots of examples of confusion over this.

Cheers,
Peter

[edit]formatting[/edit]
Software rusts. Simon Stephenson, ca 1994.

Answeryes the value of --i equals that of i - 1 however the side effects are different Pin
Luc Pattyn23-Feb-11 13:36
sitebuilderLuc Pattyn23-Feb-11 13:36 
GeneralRe: yes the value of --i equals that of i - 1 however the side effects are different Pin
Stefan_Lang24-Feb-11 1:59
Stefan_Lang24-Feb-11 1:59 
QuestionKey pressed time Logic Pin
manchukuo23-Feb-11 9:29
manchukuo23-Feb-11 9:29 
AnswerRe: Key pressed time Logic Pin
David Crow23-Feb-11 9:32
David Crow23-Feb-11 9:32 
GeneralRe: Key pressed time Logic Pin
manchukuo23-Feb-11 10:12
manchukuo23-Feb-11 10:12 
QuestionRe: Key pressed time Logic Pin
David Crow23-Feb-11 10:18
David Crow23-Feb-11 10:18 
AnswerRe: Key pressed time Logic Pin
manchukuo23-Feb-11 10:20
manchukuo23-Feb-11 10:20 
Questionunresolved external symbol error when i compile my win32 app Pin
smishtiaqhussain23-Feb-11 1:53
smishtiaqhussain23-Feb-11 1:53 
AnswerRe: unresolved external symbol error when i compile my win32 app Pin
_AnsHUMAN_ 23-Feb-11 1:56
_AnsHUMAN_ 23-Feb-11 1:56 
AnswerRe: unresolved external symbol error when i compile my win32 app Pin
Richard MacCutchan23-Feb-11 2:02
mveRichard MacCutchan23-Feb-11 2:02 
AnswerRe: unresolved external symbol error when i compile my win32 app Pin
tagopi23-Feb-11 2:03
tagopi23-Feb-11 2:03 
GeneralRe: unresolved external symbol error when i compile my win32 app Pin
smishtiaqhussain23-Feb-11 2:35
smishtiaqhussain23-Feb-11 2:35 
GeneralRe: unresolved external symbol error when i compile my win32 app Pin
Richard MacCutchan23-Feb-11 3:18
mveRichard MacCutchan23-Feb-11 3:18 
GeneralRe: unresolved external symbol error when i compile my win32 app Pin
smishtiaqhussain23-Feb-11 21:25
smishtiaqhussain23-Feb-11 21:25 
GeneralRe: unresolved external symbol error when i compile my win32 app Pin
Richard MacCutchan23-Feb-11 22:33
mveRichard MacCutchan23-Feb-11 22:33 
AnswerRe: unresolved external symbol error when i compile my win32 app Pin
tagopi23-Feb-11 16:47
tagopi23-Feb-11 16:47 
QuestionNeed assistance on how to send emails in VC6 Pin
John50223-Feb-11 1:07
John50223-Feb-11 1:07 

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.