Write a C++ program that reads and prints a joke and it punch line from tow diff
ID: 3620766 • Letter: W
Question
Write a C++ program that reads and prints a joke and it punch line from tow different files. The frist file contains a joke, but not it punch line. the second file has the punch line as its last line, preceded by "garbage." The main function of your program should open the two files and then call two functions, passing each one the file it needs. The first function should read and display each line in the file it is passed ( the joke file). The second function should display only the last line of the file it is passed (the punch line file). It should find this line by seeking to the end of the file and then backing up to the beginning of the last line. Data to test your program can be found in the joke.txt and punchline.txt file.Explanation / Answer
you will get the solution here : http://www.mjiang.com/mecps/tech/c++/Chapter%2012/ One of the cpp files + also the txt files is there
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.