I am trying to sort an array of strings... eg..
Im trying to sort this array like:
do strings work like this? can I compare the first value of a string like.Code:if(string1.substr(0,1) > string2.substr(0,1) sort();
if not, then does anyone have any suggestions? the method above does not seem to work.Code:if( A > B) cout << "A is greater than B" << endl;