#include "BubbleSort.h" BubbleSort::BubbleSort(int n, int* x) : Sort(n, x) { this->algName = "Bubble Sort [base]"; } void BubbleSort::Run(void) { for (int i = 0; i < this->n; i++) { for (int j = this->n-1; j > i; j-- ) { if (this->x[j-1] > this->x[j]) { this->Swap(j-1, j); } } } } BubbleSort::~BubbleSort(void) { }