Hey guys,
I've got one more thing to ask about. How would I go about sorting by "words" rather than characters. In my program, I "read" strings, not characters and yet if I try to "sort" by words, it ends up just sorting the letters in that word.
So "Benny Sun Honey" becomes "eBnny uSn oHney". As you can see, that's wrong.
I'd prefer not to show the code simply because I don't want someone to do it for me (thanks thought), I just want to see what the reasoning could be. If you guys think you need the code, let me know.
However, I'll show my "reasoning" to the code:
for(int i = 0; i < MAX; i++)
{
if(x[i] > x[i+1])
{
swap(x[i], x[i+1])
}
}