#include #include #include #include using namespace std; struct INDIVIDUAL { string fname; string lname; float salary; }; INDIVIDUAL GetData(ifstream &); double CalcAvg(double total, int people); int main() { ifstream file; file.open("input.txt"); INDIVIDUAL people[20]; int total_people = 0; // GET ALL THE PEOPLE FROM THE FILE while( !file.eof()) people[total_people++]=GetData(file); string temp; double total_salary = 0.0; int many_people = 1; double average = 0.0; cout<<"Last name"<>temp.lname; infile>>temp.fname; infile>>temp.salary; return temp; }