#ifndef SORTS_H #define SORTS_H #include // swap template by reference template void Swap(T& a,T& b); // bubble sort swaps between each pair if top is greater than down in pair // so that at the end of one over the smallest is on top // then the top is goes down one step //not the most efficient bubble sort template void Bubble( X *data,int size ); // the most efficient bubble sort template void BubbleSort( X *data,int size ); // Esort is like selection sort but less efficient (more Swaps he does) //Don't use it ! template void ExchangeSort(X *data,int size); // it is like when you try to sort cards template void InsertionSort(T *data,int size); //compares the top with all others members ,when finds minimum swaps between //minimum and top then top goes one step down . template void SelectionSort(T* data,int size); #endif