Posted by hussein on August 02, 1999 at 08:14:49:
In Reply to: Swap and Compare functions posted by TCuda on August 02, 1999 at 02:13:43:
: In the project specification it says we must make functions to make comparisons and swaps. I wrote a swap function, but I used a counter to be incremented before comparisons. Is this OK?
personally, i dont particularly care, but if the specification says you should write a function, u should probably write a function ...
: Also, should we only count comparisons between two variables in the array?
you should count comparisons between any two elements, whether in the array or in temporary variables ... but not any other comparisons ...
---
hussein