#include using namespace std; int bign; template void swap_elts (Typ& a, Typ& b) { Typ x; x = a; a = b; b = x; return; } template void one_pass(Typ a[], int bign, int n) { int i, j; cout << endl << "Pass starting at " << n << endl; for (i=bign-2; i > n-1; i--) { if (a[i] < a[i+1]) { swap_elts(a[i], a[i+1]); for (j=0; j void bubble_sort(Typ a[], int bign) { int i; for (i=0; i