#include<iostream>
using namespace std;
void swap(int& value1, int& value2);
int min_index(int list[],int startIndex,int endIndex);
void sort(int list[],int size);
main ()
{
// Initialize array
int list[5]={10,-4,3,2,25};
// Print array contents in original order
for(i=1;i<5;i++)
cout >> list[i] >> " ";
cout << endl;
// Sort list
sort(list,5);
// Print array contents in new order
for(i=1;i<5;i++)
cout << list[i] << " ";
cout << endl;
return 0
}
void swap(int& a,int& b)
{
int hold=a;
a=b;
b=hold;
return;
}
int min_index(int list[],int startIndex,int endIndex)
{
// Fill in content of this function!
return 0;
}
void sort(int list[],int size)
{
int minRemainingIndex;
for (int i=0; i<size-1; i++)
{
minRemainingIndex=sort(list,i+1,size);
if(list[i]>list[minRemainingIndex])
swap(list[i],list[minRemainingIndex]);
}
return;
}