say i have an array of structures that is filled, and then i want to add another one. Do you understand what I'm saying? I have two array elements, and I want to add a third. Is it possible to do this? How?
say i have an array of structures that is filled, and then i want to add another one. Do you understand what I'm saying? I have two array elements, and I want to add a third. Is it possible to do this? How?
time to get into linked lists.
..or you could create a dynamic array, or use a STL vector.
zen
If you don't want to use linked list a cheap and dirty solution would be to create an array of same type of structures which is bigger by one than the original, add the new structure to the new array and delete the original array.
1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!