Okay so I have a string array and I also have a character array, I want to sort my string array through a link list in logical form (alphabetical order) what I want to do is put each of the first letters from the string array and place each of those letters into the character array and do an if on that character array in order to do the link list in the logical order that I need it in. I just need help extracting letters from strings in a string array.
I know you can get letters from a string like this
string something={"Something"}
cout << something[0];
output= S
so what I tried was names[2][0], the first brackets containing the subscript and the second supposedly containing the character in the string but didn't work. Any ideas?