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

C / C++ / MFC

 
GeneralRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
alalba3-Feb-17 4:05
alalba3-Feb-17 4:05 
AnswerRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
leon de boer2-Feb-17 23:18
leon de boer2-Feb-17 23:18 
GeneralRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
alalba3-Feb-17 4:25
alalba3-Feb-17 4:25 
GeneralRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
leon de boer3-Feb-17 7:12
leon de boer3-Feb-17 7:12 
GeneralRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
alalba3-Feb-17 12:46
alalba3-Feb-17 12:46 
SuggestionRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
David Crow3-Feb-17 3:47
David Crow3-Feb-17 3:47 
GeneralRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
alalba3-Feb-17 4:26
alalba3-Feb-17 4:26 
AnswerRe: Thr problem of the recursive algorithm to do binary search in a sorted array Pin
Patrice T8-Feb-17 6:20
mvePatrice T8-Feb-17 6:20 
Your code do not behave the way you expect, and you don't understand why !

There is an almost universal solution: Run your code on debugger step by step, inspect variables.
The debugger is here to show you what your code is doing and your task is to compare with what it should do.
There is no magic in the debugger, it don't find bugs, it just help you to. When the code don't do what is expected, you are close to a bug.

Debugger - Wikipedia, the free encyclopedia[^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]

The downside of this solution:
- It is a DIY, you are the one tracking the problem and finding its roots, which lead to the solution.
The upside of this solution:
- You see your code behavior, you match it against your expectations.

secondary effects
- Your will be proud of finding bugs yourself.
- Your skills will improve.

You should find pretty quickly what is wrong.
Patrice

“Everything should be made as simple as possible, but no simpler.” Albert Einstein

QuestionStupid build issue - has to be an include file issue.... Pin
charlieg2-Feb-17 15:23
charlieg2-Feb-17 15:23 
AnswerRe: Stupid build issue - has to be an include file issue.... Pin
Peter_in_27802-Feb-17 16:18
professionalPeter_in_27802-Feb-17 16:18 
AnswerRe: Stupid build issue - has to be an include file issue.... Pin
leon de boer2-Feb-17 23:01
leon de boer2-Feb-17 23:01 
GeneralRe: Stupid build issue - has to be an include file issue.... Pin
charlieg3-Feb-17 1:05
charlieg3-Feb-17 1:05 
QuestionLNK2019 unresolved external symbol with Ultimate Toolbox COXTootlTipCtrl and ::MonitorFromRect Pin
Gagnon Claude30-Jan-17 5:02
Gagnon Claude30-Jan-17 5:02 
AnswerRe: LNK2019 unresolved external symbol with Ultimate Toolbox COXTootlTipCtrl and ::MonitorFromRect Pin
Richard MacCutchan30-Jan-17 6:35
mveRichard MacCutchan30-Jan-17 6:35 
GeneralRe: LNK2019 unresolved external symbol with Ultimate Toolbox COXTootlTipCtrl and ::MonitorFromRect Pin
Stefan_Lang30-Jan-17 21:39
Stefan_Lang30-Jan-17 21:39 
GeneralRe: LNK2019 unresolved external symbol with Ultimate Toolbox COXTootlTipCtrl and ::MonitorFromRect Pin
Richard MacCutchan30-Jan-17 22:18
mveRichard MacCutchan30-Jan-17 22:18 
AnswerRe: LNK2019 unresolved external symbol with Ultimate Toolbox COXTootlTipCtrl and ::MonitorFromRect Pin
Member 1489195816-Sep-20 6:40
Member 1489195816-Sep-20 6:40 
QuestionProblem Creating C++ Console App Pin
Kevin Marois27-Jan-17 8:18
professionalKevin Marois27-Jan-17 8:18 
AnswerRe: Problem Creating C++ Console App Pin
Rick York27-Jan-17 8:28
mveRick York27-Jan-17 8:28 
GeneralRe: Problem Creating C++ Console App Pin
Kevin Marois27-Jan-17 8:41
professionalKevin Marois27-Jan-17 8:41 
GeneralRe: Problem Creating C++ Console App Pin
leon de boer27-Jan-17 17:09
leon de boer27-Jan-17 17:09 
AnswerRe: Problem Creating C++ Console App Pin
Patrice T28-Jan-17 13:17
mvePatrice T28-Jan-17 13:17 
Questionhelp me write a program Pin
Member 1296870327-Jan-17 3:13
Member 1296870327-Jan-17 3:13 
SuggestionRe: help me write a program Pin
Jochen Arndt27-Jan-17 3:25
professionalJochen Arndt27-Jan-17 3:25 
GeneralRe: help me write a program Pin
Member 1296870327-Jan-17 3:52
Member 1296870327-Jan-17 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.