Answer to Question #79701 in C++ for James
Create another function to write the first 10 lines in the container to a file called topTen.txt.
Create another function that will accept an integer line number in the parameter list and string return value. When the function is called in main, a line number must be passed to the function. The function should then return the line from the container that corresponds to that line number. You must pull the line from the container, not from the file. Because you are required to pull the line from the container, you must include the container in the parameter list of this function and pass the container to this function when it is called by main. The main function should then display the string that is returned by the function.
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!