File handling with Array filled with a class
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
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
and will it be the say for outputing the array after it has been read into memory?