Hi, im doing an assignment, and im a little stuck. Ive created a class that is supposed to store first name, last name, date of birth, date of death, and a fact about a person (all variables within the class). Im trying to fill these variables with a read function. it reads a .txt file like this

Firstname Lastname 1987 1988 this guy did this

the problem is, i dont know how to handle the last variable. the variable needs to hold the entire "this guy did this" sentence. i made it a string, just because i was clueless, and as expected, it only holds "this"

this is my .h:

#include <string>
#include <fstream>
#include <iostream>
using namespace std;

class Person
Person(const Person & person);

void Set(const string Fname, const string Lname, const int Dob, const int Dod, const string Fact);
void Get(string & Fname, string & Lname, int & Dob, int & Dod, string & Fact) const;
void Print() const;
bool Read(ifstream & input);

int dob;
int dod;
string fname;
string lname;
string fact;


here is the read function in the .cpp:

bool Person::Read(ifstream & input)
return (input >> fname >> lname >> dob >> dod >> fact);