1234567891011121314151617181920212223
int main() { vector<Entry> entries; ifstream input("events.txt"); Entry e; while(e.Read(input)) { Entry *d = new Entry(); *d = e; entries.push_back(*d); } for (int i = 0; i < entries.size(); ++i) { cout << entries[i] << '\n'; } return 0; }