I am having trouble finishing this code for an assignment i have due. I have to create a code that (depending on what the user picks) sorts the numbers in ascending or decending order using an array with the funcion in the code. Any help would be greatly appriciated.
#include <iostream>
using namespace std;
void sortMe(int array[],int sortedIndexes [], int size, char mode);
int main()
{
const int size=10;
int array[size]={8,2,7,4,10,-1,0,3,9,5};
int sortedIndexes[size];
int sortMe;
char mode;
cout<<"Please press (a) for ascending or (d) for decending order."<<endl;
cin>>mode;
if (mode=='a')
{
for(int i=0;i<size-1;i++)
{
if
}
system ("pause");
}
}