I need help finishing an assignment. How to pass my array to the function and return it as a sorted vector. I'm kind of lost with the functions part.
Problem:
Write a program that performs a sorting routine as discussed in class. Create
an array of 10 integers (e.g., 63, 42, 27, 111, 55, 14, 66, 9, 75, 87). Pass
this array to a separate function that sorts the integers and returns a vector
containing the sorted integers. Use either the SELECTIONSORT algorithm or the
INSERTIONSORT.
// End of program statements
cout << "Please press enter once or twice to continue...";
cin.ignore().get(); // hold console window open
return EXIT_SUCCESS; // successful termination
}
// end main() **************************************************************
vector<int> fillvector(int array[], int size)
{
vector<int> myvector(size);
insertionsort(array,size);