Output isn't right...

Hi I've got a bit of code right here that reads a text file fine, but it doesn't cout anything other than the first line.
Here..

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}
Include the code(Event) for your class too.

Aceix.
Oh, I'm really sorry everyone, I'm an idiot and I had a comma at the end of that first line for some reason, was causing it to stop~
Thanks, is there a way to delete this? It's a little embarrassing!
Topic archived. No new replies allowed.