Oh-oh...
My bad...
If you look at the code that's available on the Wrox website, you'll see that the source has the call as:
mySort.quickSort(0, data.Length - 1);
Somehow, the first argument got dropped and neither I nor the tech ed caught it. As a general rule, if you see something in the book that looks stupid, first check the source available on the web to see if it's different there. Usually, that code's correct since it is never editted. If that doesn't fix it, then we've done something even more stupid...
Sorry for the error...
__________________
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
|