std::vector<LogEntry> parse(std::istream& in) {
std::vector<LogEntry> result;
char c[500];
LogEntry log;
String entry;
while(!in.eof()){
in.getline(c, 500);
if(in.eof())
break;
entry = String(c);
log = LogEntry(entry);
result.push_back(log);
}
return result;
}
How do I change this parse function for it to work I have print out statements in my code and it stops at entry = String(c), our goal with this function is to use our String ADT we created and to read all the lines from the files that they give us and to create a logEntry object for each line. This function will return a vector of logEntry's.