I know this is isn't an opengl question but I know most good programmers here can tell me what to do( no pun intended).
If I have an array of say vertices, the size of which is different everytime a file is loaded ( yes I am loading a file). I set the array with new. i.e scenevertices = new VERTEX[numvertices];. Where VERTEX is a structure of type vertex (i.e vertex.x, .y ,.z). This is fine but what I want to do is sometime in the program add vertices. I can't use new again and set numvertices to the new number as this will wipe out the previous data. I want to append on to the end. I think this is done with linked lists but I can't find any help on the matter and it is nothing I have done before and so I don't have a clue what to do.
I am sure this isn't a big question, simply how do I add a member to list making a dynamic list. At the moment I simply make the array huge to start with but this is obviously stupid and a waste of mem.