I don't understand why something isn't working on my code. I have the dat file and the cpp in the same folder
this is the problem:
Write an interactive c++ program whose input (from a file) is a series of 12 temperaturess. It should write out on file tempdata.dat each temperature as well as the difference between the current temperature and the one preceeding it. The difference is not output for the first temperature that is input. At the end of the program, the average temperature should be displayed for the user via cout. Here is my code: