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
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