Question: need help on c++ program please You will create one source code program, Prog14.cpp. This program will 1. Use a function, which you will complete,
need help on c++ program please







You will create one source code program, Prog14.cpp. This program will 1. Use a function, which you will complete, named PromptUser0, to ask the user for a filename. It will return the filename as a string object. 2. pen the filename for reading. If you cannot open the filename the user supplied prompt the user for another. Repeat this until you can open the user's file. I found that the file should be placed in the directory where Visual Studio puts the ".vcxproj" file and the ".cpp" file. Otherwise you have to give the FULL path to the file. If you put the file on the Desktop, the filename will probably be something like C:\users\your user name\Desktoplyour-real-file-name 3. Use a function, which you will complete named Read Data0, that will take a reference to an integer vector as the first parameter and a reference to a file stream as the second parameter. It will test to make sure the stream is open, then read all the data from the stream and place that data into the vector. If the file is not open at the beginning of the function, the function will return a 1, otherwise it will return 0. The main program should check the return value of this function. If there is an error, give the user an error message and then end the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
