int size;
string * names;
names = new string[size];
That has the array of strings made. I also have the user input coded.
Now, I know I edited my post saying I had the sorting down, but I have it down for int type arrays. Those are way easier! I have used a code for this before:
1 2 3 4 5 6 7 8
void sort(int * numbers)
{
for(int i=start; i<=end; i++)
{
int first = firstNum(nums,i,end);
swap(numbers[i], numbers[firstNum]);
}
}
Similar to this one, where firstNum was a function to find which number would go first, or the smaller one and does not return anything because it's just moving numbers in an array around.
How could I go about to sorting a string array alphabetically?