Where is there a void? I am a little lost, although I do understand the length function is returning and int and the sorted function would be returning a char...
Thanks JLBorges, I know how to sort a single string but that you for the refresher. My problem is that my input is within a string array. Here is an example:
Oh, so if I put string text[1] then the place of my text would reside in [0]right?
I was trying to make it an array because I also have to take the input and show the most occuring character, number of alpha characters, numeric characters, spaces, vowels and end marks.
It was to my knowledge that I needed my string in array form in order to do those things.
If I wanted to take a string and make it an array, how would one do that?
> I also have to take the input and show the most occuring character, number of alpha characters,
> numeric characters, spaces, vowels and end marks.
> It was to my knowledge that I needed my string in array form in order to do those things.
You do not need an array of strings. You need one string, which holds the sequence of characters entered by the user.
Thanks a ton for that... Before I tried making it a function, I just had it plugged directly where it was needed! But my prof. told me he wants all seperate functions and I did not know it returned a void.