Create an array of ints in main()
Pass the array as a parameter to a function to read in the int length data. Making the prototype look like this: void read_data(ifstream& input, int arr);
In the read function, read mixed-type input data (using getline() and “cin >>” statements)
In the read function, put the length data into the array
In main, sum up the array of ints
Print their sum
The format of the .txt file I'll be reading is:
And I'll have to take the second line of each person (length data) and put them in an array and sum them up in main().