Posted by study break on August 02, 1999 at 12:55:53:
In Reply to: Re: Swap and Compare functions posted by hussein on August 02, 1999 at 10:31:06:
: pointless ? poorly worded ? apparently, u missed the point altogether ... the point of writing functions is :-
I guess I interpreting the specs in that you want use to change the sorting algorithm, the algorithms use swaps and comparisons, the way you word it in your specs, it sounds like you want us to write one sorting function with just comparisions, and one with just swaps, of course I have a swap function seperate to the program, but my sorting function compares and then possibly swaps. There are counters imbedded in for both swap and comparison counting...