#include #include using namespace std; template void swapTemp(T &x, T &y) { T temp = x; x = y; y = temp; } template void bubbleSort(T array[], int size) { bool swapped; do { swapped = false; for (int count = 0; count < (size-1); count++) { if (array[count]> array[count+1]) { swapTemp(array[count], array[count+1]); swapped=true; } } }while(swapped); } template void displayArray(VarType arr [], int arrSize) { for (int i = 0; i< arrSize; i++) { cout< and < are overloaded in string class cout<