From 7bf2eccd97016573f9bd10303584485bb3a3a00b Mon Sep 17 00:00:00 2001 From: sriharikarthik08 <73272009+sriharikarthik08@users.noreply.github.com> Date: Thu, 22 Oct 2020 14:54:08 +0530 Subject: [PATCH] updated the necessary change plz check it out --- cpp/SelectionSort.cpp | 79 ++++++++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 27 deletions(-) diff --git a/cpp/SelectionSort.cpp b/cpp/SelectionSort.cpp index 0678448..d96fe80 100644 --- a/cpp/SelectionSort.cpp +++ b/cpp/SelectionSort.cpp @@ -1,31 +1,56 @@ -#include -#include +#include +#include +#include +#include +#include +#include + using namespace std; +const int ARRAY_SIZE = 7; + +void selectionSort(int list[], int length); + int main() { - int n,i,j,minIndex,t; - cin>>n; - int a[n]; - for (i=0;i>a[i]; - } - for (i=0;i