We're going over input files in my C++ class but I'm taking it online with limited direct help. We currently have an assignment where we are required to write a program that reads daily temperature data from an input file and analyzes that data to display the average high, average low and average of the averages. I thought I knew how to get started but even now I'm in a slump because I can't even get the data to appear when I run the program. Here's the assignment:
This is what I have so far. I'm not asking for anyone to do the assignment for me, as I'll also be tested on this later on, but some guidance would be very much appreciated. At least if someone could direct me along the right way.
That's also something I was unsure of how to do. From the example our professor gave us, his text document had three rows with three different numbers. The first two were integers and were declared as such whereas the last one was float. He labeled them i, j, and x so that left me to think that do I need to declare each row of my own text?