>> im not too sure what push_back does though
Did you bother to look it up? When you don't know what something does then you need to do some research and read abo9ut it.
You have to include the header file <vector>
lines 12-18: declare structures outside all functions. Move that up above main();
line 20: delete that line because vector is the name of a c++ class.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005