© Ray Lischner 2020
R. LischnerExploring C++20https://doi.org/10.1007/978-1-4842-5961-0_9

9. Arrays and Vectors

Ray Lischner1 
(1)
Ellicott City, MD, USA
 

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.

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 ...

Get Exploring C++20: The Programmer's Introduction to C++ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.