Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: else does not return expected value Pin
jharn26-Jan-11 10:10
jharn26-Jan-11 10:10 
GeneralRe: else does not return expected value Pin
TheGreatAndPowerfulOz26-Jan-11 10:12
TheGreatAndPowerfulOz26-Jan-11 10:12 
GeneralRe: else does not return expected value Pin
jharn26-Jan-11 10:21
jharn26-Jan-11 10:21 
GeneralRe: else does not return expected value Pin
TheGreatAndPowerfulOz26-Jan-11 10:44
TheGreatAndPowerfulOz26-Jan-11 10:44 
AnswerRe: else does not return expected value Pin
jharn26-Jan-11 11:04
jharn26-Jan-11 11:04 
GeneralRe: else does not return expected value Pin
TheGreatAndPowerfulOz26-Jan-11 11:07
TheGreatAndPowerfulOz26-Jan-11 11:07 
GeneralRe: else does not return expected value Pin
jharn26-Jan-11 11:12
jharn26-Jan-11 11:12 
GeneralRe: else does not return expected value Pin
TheGreatAndPowerfulOz26-Jan-11 10:10
TheGreatAndPowerfulOz26-Jan-11 10:10 
also, have you tried attaching the code to a debugger and stepping through to see what actually happens?

if you can't do that, then try using some tracing statements to see what the values are and where the logic actually flows.
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams

QuestionRe: else does nto return expected value Pin
Maximilien26-Jan-11 9:56
Maximilien26-Jan-11 9:56 
AnswerRe: else does nto return expected value Pin
jharn26-Jan-11 10:08
jharn26-Jan-11 10:08 
GeneralRe: else does nto return expected value Pin
TheGreatAndPowerfulOz26-Jan-11 10:14
TheGreatAndPowerfulOz26-Jan-11 10:14 
GeneralRe: else does nto return expected value Pin
Cedric Moonen26-Jan-11 20:35
Cedric Moonen26-Jan-11 20:35 
GeneralRe: else does nto return expected value Pin
Stefan_Lang27-Jan-11 2:20
Stefan_Lang27-Jan-11 2:20 
AnswerRe: else does nto return expected value Pin
Richard MacCutchan26-Jan-11 22:41
mveRichard MacCutchan26-Jan-11 22:41 
QuestionReturning a Reference Pin
Anthony Mushrow26-Jan-11 7:59
professionalAnthony Mushrow26-Jan-11 7:59 
AnswerRe: Returning a Reference Pin
dasblinkenlight26-Jan-11 8:26
dasblinkenlight26-Jan-11 8:26 
AnswerRe: Returning a Reference [modified] Pin
TheGreatAndPowerfulOz26-Jan-11 9:39
TheGreatAndPowerfulOz26-Jan-11 9:39 
GeneralRe: Returning a Reference Pin
Emilio Garavaglia26-Jan-11 22:58
Emilio Garavaglia26-Jan-11 22:58 
GeneralRe: Returning a Reference Pin
Stefan_Lang27-Jan-11 1:57
Stefan_Lang27-Jan-11 1:57 
GeneralRe: Returning a Reference Pin
TheGreatAndPowerfulOz27-Jan-11 8:23
TheGreatAndPowerfulOz27-Jan-11 8:23 
GeneralRe: Returning a Reference Pin
Niklas L26-Jan-11 23:20
Niklas L26-Jan-11 23:20 
GeneralRe: Returning a Reference Pin
Stefan_Lang26-Jan-11 23:57
Stefan_Lang26-Jan-11 23:57 
GeneralRe: Returning a Reference Pin
Niklas L27-Jan-11 1:07
Niklas L27-Jan-11 1:07 
GeneralRe: Returning a Reference Pin
Stefan_Lang27-Jan-11 1:20
Stefan_Lang27-Jan-11 1:20 
GeneralRe: Returning a Reference Pin
TheGreatAndPowerfulOz27-Jan-11 8:02
TheGreatAndPowerfulOz27-Jan-11 8:02 

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.