I have a quick sort that reads in data from a file. I know there is something wrong with the partition part of my quick sort and i know exactly what line of code it is. I keep getting the Error C2664: Cannot Convert Parameter 1 from 'x' to 'y'. now thats not exactly what is says but I will show the line of code that it occurs on.
-
swap(low,(low + high)/2);
-
it tells me that it cannot convert pararmeter 2 from 'int' to 'int &'
Any help would be greatly appreciated, if you need more info just let me know