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
Jump to Post
Do 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
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.