How to prompt user enter 10 integer then sort it in both ascending and descending order and also ask user either they want to sort it by insertion sort or selection sort or bubble sort??
iris88
0
Newbie Poster
Recommended Answers
Jump to PostI would use c++ to prompt the user for 10 integers. Each entry could be stored in an array of integers.
At this point, you could display a menu of options on how the user would like to sort the array; which sorting method to use, and to sort …
Jump to PostA simple cout tag will produce a line on the screen. What exactly are you having an issue with? Post the code you have so far and then I can help.
All 5 Replies
Clinton Portis
211
Practically a Posting Shark
DemonGal711
8
Junior Poster
iris88
0
Newbie Poster
Grn Xtrm
84
Posting Pro in Training
Tom Gunn
1,164
Practically a Master 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.