Introduction - If you have any usage issues, please Google them yourself
The program, through the form of a single character input to file one by one, and then copy the contents of the file into a class file 2, copying some important details to note: Beyond an input file, the last must also enter a newline character ' \ n' , replication is also true Cause: When copying a newline at the end, if no line breaks, so will always be in the replication status. Of course, the default is a carriage return+ newline (ENTER+ \ n), this time should be an end to c == EOF condition, rather than c == ' \ n' .