Question
5. Create a file called Ex13.cpp. This will be the application file for this lab. You will be submitting this file at the end of
5. Create a file called Ex13.cpp. This will be the application file for this lab. You will be submitting this file at the end of this exercise. (30 points) The program should: a. include iostream, fstream, strstream, and cstdlib (These libraries are for hints. If you find a better library to open file, break string, etc. feel free to use those.) b. include reverse.h c. accept command line arguments d. for each file listed on the command line following the name of the executable i. print the name of the file ii. open the file iii. read the file line by line iv. reverse each line of the file v. write out the original line and the reversed line vi. break the reversed line into white space delimited string and write each string on a separate line.
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