+ 1

Can anyone help with a cpp program with files?

I am running this on the gnu gcc compiler I know files do not work on playground, but I do not know why the program will not compute and numbers from the file or reach the -99 sentinel. I believe it is an issue with my loop in main but do not see what is wrong? https://code.sololearn.com/cALLPjzXoVNJ/?ref=app

2nd Apr 2018, 6:52 AM
anthonysbarra
anthonysbarra - avatar
1 Answer
+ 2
if (airTemperature > 50 || windSpeed < 3) then windChill isn't set, but it is used. I'd also recommend writing some unit tests for each function, as you go. It will help you find bugs, and leave you with some good regression testing.
2nd Apr 2018, 7:18 AM
Emma