Now that you understand the basics, it is time to start moving on to more exciting challenges. Let’s write a real program, something nontrivial but still simple enough to master this early in the book. Your job is to write a program that reads integers from the standard input, sorts them into ascending order, and then prints the sorted numbers, one per line.
© Ray Lischner 2020R. LischnerExploring C++20https://doi.org/10.1007/978-1-4842-5961-0_9
9. Arrays and Vectors
Ellicott City, MD, USA
At this point, the book has not quite covered enough material for you to solve this problem, but it is instructive to think about the problem and the tools you may need to solve it. Your first task in this Exploration is to write pseudo-code for ...