May sixth cmd fc use of file compare
today , I'd like to talk about how to test our input and output. In our programme,we can copy and paste data in our programme. and here is a new way . cmd ->cf the name of one file ,the name of other file.
now here is the procees ,you can follow these pictures.
write down these codes to open "E.in"file and write "test.out"file.
first , you already have the right answers in "E.out",and the "E.in"file .
second,you should put the "E.cpp"and"E.in" in one file.and then run the "E.cpp",you will get the "test.out "in the same file.
third , open the cmd "command windows",put"fc the position of "E.out" the position of "test.out" " ,and you will get the result.
and you can find the different in your answers and the right answers.
if the answer is "no difference",congratulations to you. you get the right answer.