Three problems for c++

profilehomeworkhelp325
people.cpp

#include "People.h" #include <string> #include <sstream> #include <fstream> using namespace std; People::People(string fn){loadPeople(fn);} void People::loadPeople(string fn) { ifstream iS(fn); string s; int age, gender; double height, weight; getline(iS, s); // skip heading getline(iS, s); personCount = 0; while(!iS.eof()) { istringstream iSS(s); iSS >> age >> weight >> height >> gender; people[personCount++] = Person(age, weight, height, gender); getline(iS, s); } iS.close(); }