Q.1) Write a program that prompts the user to enter five words (using one cin statement), and store them in five variables, and then sort the words alphabetically
amani_1
0
Newbie Poster
Recommended Answers
Jump to PostDo the assignment one small part at a time. First write a program that contains a loop which runs from 0 to 5. Then declare an array of 5 strings. Now your program is ready to prompt inside the loop for the strings, using the loop counter as the index …
All 3 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
amani_1
0
Newbie Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.