Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public shared sub Sort(ByVal values() as IComparable)
- Dim numbers(100) as double
- Dim random as new Random(0)
- for i as integer = 0 to numbers.length - 1
- numbers(i) = random.NextDouble()
- Next
- QuickSort.Sort(numbers) ' gives compiler error.
- Error 88 Value of type '1-dimensional array of Double' cannot be converted to '1-dimensional array of System.IComparable' because 'Double' is not derived from 'System.IComparable'. C:Proving GroundsModule1.vb
Add Comment
Please, Sign In to add comment