Sort words lexicographically

So the input is a sentence from the console and using only iostream you should cout every word in a new line starting from the first in the lexicographic order, then the 2nd, and so on. You have to use dynamic memory. Any ideas how to begin with the dynamic arrays?
Topic archived. No new replies allowed.