Find Jobs
Hire Freelancers

week3-4Prog.cpp -- 2

$10-30 USD

Slutfört
Publicerad över åtta år sedan

$10-30 USD

Betalning vid leverans
The file must be called [login to view URL] This program will store in miniVector v a list of 15 random integers from 0 to 99, then it will output the vector, sort the vector, then output it again sorted. The miniVector class is on page 250. Program Definition 1. Create program definition with the following templates and methods: // output miniVector v template <typename T> void writeMiniVector(const miniVector<T>& v); // use insertion sort to place miniVector v in descending order template <typename T> void sortMiniVector(miniVector<T>& v); Main Method 1. Declare: miniVector<int> v; 2. Declare: randomNumber rnd; 3. call v.push_back([login to view URL](100)); to push 15 entries from 0-99 onto the vector 4. call writeMiniVector to output vector 5. call sortMiniVector to sort the vector 6. call writeMiniVector to output the sorted vector. After you output the sorted vector: Include: system("PAUSE"); after your output to pause the screen. writeMiniVector Method (const miniVector<T>& v) 1. Iterate through the vector v and output each element to the screen. sortMiniVector Method (miniVector<T>& v) 1. Sort the elements of vector v. 2. Since it is passed-by-reference, no return is necessary. Example output of your program Original: 59 18 60 91 49 47 83 93 55 52 15 36 83 56 91 Sorted: 93 91 91 83 83 60 59 56 55 52 49 47 36 18 15
Project ID: 9574128

Om projektet

2 anbud
Distansprojekt
Senaste aktivitet åtta år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
Hi, I have read the requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can start. Thanks.
$20 USD Om 0 dag
5,0 (622 omdömen)
7,2
7,2

Om kunden

Flagga för UNITED STATES
Swansea, United States
2,8
2
Medlem sedan feb. 2, 2016

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.