I am currently writing a program that should read sets of coordinates from a file and place these coordinates in an object, before adding the object to a list of such objects.
Here is the method I am trying to use, v1 is the object, which is created by a constructor which I know works, the file reads in the X and Y coordinates and stores then within the object.
But would anyone possibly be able to explain to me how I can add this object to a list?
I am using the standard library list as writing my own did not turn out well and later I will need the list to be doubly linked.