Ok so this is a time around I need to read strings from a file and sort them using Selection sort. I took a bit of another program that read strings using a getline function into an array but, I can't get the rest of the code to work. Any help would be appreciated.
string array[SIZE]; /// this is an array of strings
int i=0;
string name; ///this is a string variable not an array
1 2 3 4 5 6 7
cout << "\tThe unsorted string is: \n";
showArray(name, SIZE); /// name is not an array, it is a string
selectionSort(name, SIZE); /// replace all instances of name with
cout << "\n\tThe sorted string is: \n"; /// your variable array. because your functions
showArray(name, SIZE); /// are taking an array parameter.
system("pause");
return 0;