OK - I have a any array of size 30. Each array element is a class that consists of 5 objects.

i have declared it as follow
Code:
WeatherReport MonthlyReport[DAYS];
Now I want to read input from a file and store it in the array. The objects are all of type int and its things like HighTemp, LowTemp, Rain etc. How do I use an index with classes in arrays?

will it be something like
Code:
if_stream>>report.HighTemp[i];
and will it be the say for outputing the array after it has been read into memory?
thanks!