Arrays

Write a pseudocode that will ask for 10 words and output the word in alphabetical order.

Hi.! i'm a newbie. Hope you can help me coz i have no idea how to do that problem.
create an array of std::string
http://www.cplusplus.com/doc/tutorial/arrays/

set up a loop to iterate 10 times
http://www.cplusplus.com/doc/tutorial/control/

each iteration as the user for a word and put it in the array.
http://www.cplusplus.com/doc/tutorial/basic_io/

Get that working first. Worry about sorting later.

edit: oops i've just noticed you want pseudocode . You can construct that from the above links.
Last edited on
Topic archived. No new replies allowed.