INSTRUCTIONS Create a VS project from the Exercise 12 starter code on GitHub (the same code we worked with in class).
INSTRUCTIONS
Create a VS project from the Exercise 12 starter code on GitHub (the same code we worked with in class).
Input file ex12_data.csv is included in the GitHub repository. This file must be in your VS project folder.
Run the starter code. It will display lines of file data in the order they were read from the file, then in reverse order.
This code reads file data into a std::vector of std::string elements.
When this code displays vector elements, it removes them all from the vector
Modify the loop in function display_file_data() to prevent this data loss
Don’t pass the vector by value because this will copy the entire vector
Add function void write_output_file() to output each vector element to a file.
Use the constant and ostream variable declared in namespace outfile
Start your “file output in C++” research here: https://cplusplus.com/doc/tutorial/files/
Follow the coding style in the starter code. In particular,
Put function prototypes above main
Put function definitions after main
Put a comment header before each function
WHAT TO SUBMIT
Submit the .cpp file with your completed modifications.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
