I want the program to sort the words in a sentence i.e. in dictionary form and we have to input the string
I want the program to sort the words in a sentence i.e. in dictionary form and we have to input the string
You simply parse the line into words (use spaces and punctuation as end-of-word markers). Then, sort the array.
If you put a long text box on a form, you can use that as input. When the user hits <ENTER>, process the line and display the results.
All times are GMT -7. The time now is 05:14 PM. |