Question: Write a void function that displays the contents of a vector in a nice format. You will pass in the vector and display it to
Write a void function that displays the contents of a vector in a nice format. You will pass in the vector and display it to the screen (Note you dont need to pass in the size of the vector as you can use the size() member function of the vector object within your function to determine the size of your vector.) o Display the vect1 using the function you wrote Write a function that loads numbers into a vector from a file. The function will return the filled vector to the calling program. The vector function will not know how many items are in the data file. The data file will always be named numbers.dat and will reside in the same folder as the program. Hard code the file name into the function. o Here is the prototype: o vector loadVectFromFile();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
