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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started