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

C / C++ / MFC

 
GeneralRe: Good code, wrong result Pin
Luc Pattyn4-Oct-09 8:39
sitebuilderLuc Pattyn4-Oct-09 8:39 
AnswerRe: Good code, wrong result Pin
David Crow5-Oct-09 4:56
David Crow5-Oct-09 4:56 
As has been suggested before here, you need to trim this code down to just what is absolutely necessary to exhibit the problem.

If you are seeing 209 out of 210 combinations (i.e., one-off bug), check the while() and for() loops to ensure they are running the expected number of times.

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


GeneralRe: Good code, wrong result Pin
Waldemar Ork5-Oct-09 23:29
Waldemar Ork5-Oct-09 23:29 
QuestionC++ Helper Wanted Pin
MrMcIntyre4-Oct-09 3:48
MrMcIntyre4-Oct-09 3:48 
QuestionRe: C++ Helper Wanted Pin
Maximilien4-Oct-09 4:11
Maximilien4-Oct-09 4:11 
AnswerRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 4:20
MrMcIntyre4-Oct-09 4:20 
GeneralRe: C++ Helper Wanted Pin
Michael Schubert4-Oct-09 4:51
Michael Schubert4-Oct-09 4:51 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 4:54
MrMcIntyre4-Oct-09 4:54 
GeneralRe: C++ Helper Wanted Pin
Michael Schubert4-Oct-09 5:08
Michael Schubert4-Oct-09 5:08 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 5:14
MrMcIntyre4-Oct-09 5:14 
GeneralRe: C++ Helper Wanted Pin
Michael Schubert4-Oct-09 5:19
Michael Schubert4-Oct-09 5:19 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 5:23
MrMcIntyre4-Oct-09 5:23 
GeneralRe: C++ Helper Wanted Pin
Michael Schubert4-Oct-09 5:34
Michael Schubert4-Oct-09 5:34 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 5:39
MrMcIntyre4-Oct-09 5:39 
GeneralRe: C++ Helper Wanted Pin
Maximilien4-Oct-09 5:58
Maximilien4-Oct-09 5:58 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 6:09
MrMcIntyre4-Oct-09 6:09 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 7:11
MrMcIntyre4-Oct-09 7:11 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 7:19
MrMcIntyre4-Oct-09 7:19 
GeneralRe: C++ Helper Wanted [modified] Pin
Michael Schubert4-Oct-09 11:33
Michael Schubert4-Oct-09 11:33 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre4-Oct-09 11:51
MrMcIntyre4-Oct-09 11:51 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre5-Oct-09 9:57
MrMcIntyre5-Oct-09 9:57 
QuestionRe: C++ Helper Wanted Pin
David Crow5-Oct-09 10:09
David Crow5-Oct-09 10:09 
AnswerRe: C++ Helper Wanted Pin
MrMcIntyre5-Oct-09 10:16
MrMcIntyre5-Oct-09 10:16 
GeneralRe: C++ Helper Wanted Pin
David Crow5-Oct-09 10:19
David Crow5-Oct-09 10:19 
GeneralRe: C++ Helper Wanted Pin
MrMcIntyre5-Oct-09 10:21
MrMcIntyre5-Oct-09 10:21 

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.