Computer Science Canada What am I doing wrong???? |
Author: | bobbySmith [ Tue Mar 24, 2009 1:53 pm ] | ||||
Post subject: | What am I doing wrong???? | ||||
![]()
Mod Edit: Remember to use syntax tags! Thanks ![]()
|
Author: | DemonWasp [ Tue Mar 24, 2009 2:06 pm ] | ||
Post subject: | RE:What am I doing wrong???? | ||
First, please use either [ code ] or [ syntax ] tags to properly align / highlight your code. This makes it a lot easier for us to help you. Second, when describing a problem, "it doesn't work" is insufficient. Tell us what your output is and what your expected output is, and what you've already tried. I'm not going to try solving this problem at the moment; instead, I'll point you in the right direction. Try putting an output line right as you enter BinarySearch that goes something like this:
Then see what output that produces compared to what you would expect it to produce. |
Author: | bobbySmith [ Tue Mar 24, 2009 2:25 pm ] |
Post subject: | RE:What am I doing wrong???? |
Ah ha! Thanks DemonWasp. I see it is working but istep won't add up the amount of steps it takes. It stays at 1. |
Author: | bobbySmith [ Tue Mar 24, 2009 2:28 pm ] |
Post subject: | RE:What am I doing wrong???? |
Never mind, I got it. Stupid mistake. Thanks for the help though. |