Question: 5.15 LAB: Using the built-in C++ sort() and reverse() functions on a vector Write a C++ program that reads in an unknown number of
5.15 LAB: Using the built-in C++ sort() and reverse() functions on a vector Write a C++ program that • reads in an unknown number of integers into a vector, • displays the contents of the vector, uses the built-in C++ sort() function to sort the vector in ascending order; displays the vector contents in ascending order; uses the built-in C++ reverse() function to reverse the contents of the vector, and • displays the vector contents in descending order. . Additional instructions are provided as instructions in the file main.cpp below.... r#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
