#include "sorting6.h" // implementation of subprograms changed int i; sorting6::sorting6(int *elems, int nbElem) { list = elems; this->nbElem = nbElem; } void sorting6::swap(int i, int j) { int temp; temp = list[i]; list[i] = list[j]; list[j] = temp; } void sorting6::bubble_sort6() { int changed = 1; while (changed) { changed = 0; for(i=0;i list[i+1]) { swap(i,i+1); changed = 1; } } } } void sorting6::selection_sort6() { int j; int posCurMin; for(i=0;i