Question: Write code and attach screenshots of output as well. And also do comment. Only use the required parameters or functions. Two files contain integers, each
Write code and attach screenshots of output as well. And also do comment. Only use the required parameters or functions.

Two files contain integers, each of unknown count. Write a C++ program that reads such files and outputs all numbers that are common between the two files to a new file provided by user. (Hint: you may close and re-open a file to read it again from start) Sample input files: File1: 12 67 83 9 -55 23 -8 File2: -8 57 83 77 12 -55 81 1009 Sample output file: 12 83 -55 -8
Step by Step Solution
3.36 Rating (146 Votes )
There are 3 Steps involved in it
include using stdcerr using stdcout using stdendl include using stdifstream using stdofstream includ... View full answer
Get step-by-step solutions from verified subject matter experts
