main.cpp // Given a vector sort it in ascending order and descending order display both the results on the screen. #include 3 #include 4 auto sort_ascending() { 6 7 8 } 9. auto sort_descending() { 10...


in c++


main.cpp<br>// Given a vector sort it in ascending order and descending order<br>display both the results on the screen.<br>#include <iostream><br>3<br>#include <vector><br>4<br>auto sort_ascending()<br>{<br>6<br>7<br>8<br>}<br>9.<br>auto sort_descending()<br>{<br>10<br>11<br>12<br>13<br>}<br>14<br>15<br>int main() {<br>16<br>std::vector<int> list({10,9,23,543,29,34,1,3,4,5,6,656,55,987,<br>999,1000,7});<br>//PRINT IN MAIN<br>17<br>18<br>19<br>}<br>

Extracted text: main.cpp // Given a vector sort it in ascending order and descending order display both the results on the screen. #include 3 #include 4 auto sort_ascending() { 6 7 8 } 9. auto sort_descending() { 10 11 12 13 } 14 15 int main() { 16 std::vector list({10,9,23,543,29,34,1,3,4,5,6,656,55,987, 999,1000,7}); //PRINT IN MAIN 17 18 19 }

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here