I know this is a real dumb question but my mind completely went blank. In sorts.cpp I have three methods - bubbleSort(int[] array, int first, int last), selectionSort(same), quickSort(same). I don't have a default constructor. In my driver program, how would I call a sort method? Is there no way to do this except to create a sorts constructor and then in my driver create a variable sorts mySort then use mySort.bubbleSort(...) ?



LinkBack URL
About LinkBacks


