Question: Write a complete main () program that does the following: a) Instantiate a default_random_engine object called 'randobj'. Declare a vector named 'intVec', and (using

 Write a complete main () program that does the following: a) Instantiate a default_random_engine object  

Write a complete main () program that does the following: a) Instantiate a default_random_engine object called 'randobj'. Declare a vector named 'intVec', and (using randobj), initializes intVec with 5500 random integer values. Using reverse iterator, print out all odd numbers contained in intVec. Using iterator, together with the generic algorithm 'find', print out "Value found!!", if intVec stores a particular value: 1368. (9 marks) b) c)

Step by Step Solution

3.51 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Below is a complete main program written in C that performs the tasks specified in the que... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!