Question: C++ Homework debug help needed! Here's the homework assignment. ______________________________________________________________________________ Here's my code for the assignment which contains bug ________________________________________________________ here's the output, the output
C++ Homework debug help needed!
Here's the homework assignment.

______________________________________________________________________________
Here's my code for the assignment which contains bug

________________________________________________________
here's the output, the output should say the files are equal.

If you can find the bug for me where I did wrong, I can only use these three headers, I did appreciate it and will give you a good rate!
1) Required function: bool cmp files(const std::string& lhsFilename, const std::string& rhsFilename) Before writing functions to modify the files, you've created some test cases by hand and needed a way to automate the tests to determine if your works successfully. To do this, you decide to write a function to tell you if two files are identical, to compare your output files to the tests you created. Write a function cmp_files that takes two filenames as input and returns true if the two files are identical, and returns false otherwise. A suggested way to do this is: CSE 250 Fall 201 Open each file in binary mode. Read the files into memory. Compare if the two files are identical. Return true if the files are equal and false otherwise. . Note: you should not modify the original file when doing this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
