#include "Context.h" #include #include int main() { Context* ctx = new Context(); int arr[] = { 10, 23, -1, 0, 300, 87, 28, 77, -32, 2 }; ctx->setInput(arr, sizeof(arr)/sizeof(int)); printf("ΚδΘλ£Ί"); ctx->print(); // Γ°ΕέΕΕΠς ctx->setSortStrategy(new BubbleSort()); ctx->sort(); // Ρ‘ΤρΕΕΠς ctx->setSortStrategy(new SelectionSort()); ctx->sort(); // ²εΘλΕΕΠς ctx->setSortStrategy(new InsertSort()); ctx->sort(); printf("\n\n"); system("pause"); return 0; }