I have a program that will read a complete line of data from a text-file into a data structure (MANY vars in the structure).
The data file currently holds 8000 lines of data. I was at first tempted to define an arry of the structures that i have.....ie...
But, i have decided that the data file may increase in size later on (more data added, thus, more structures would have to be added to the static array, so that they could be read in later.)
But i dont wanna do it this way! I dont want to have to recompile and distribute the exe each time this happens!!!
My question is this (obvious now):
How can i dynamicly define these structures?
I have looked at link-lists, and it seems to be the best way currently, but i would prefer not to use this method (lack of information and i dont like all the extra crap required for them).
The person that leads me to information that will help get me on track so i can dynamicly allocate structures will get the points.
They will be handed to a person tht gives full source (commented!) on linked lists too. But, as i want to avoid the use of link-lists, the points WILL be denied if no one else has taken a bash at this question.
BTW I will use C/C++ or for this project, i will NOT use MFC, dont bother with mfc replys.
Im working with Visual C version 6 and this program will use directx under the windows 98 environment.
Thanks people, i know you'll help this poor old hobby programmer.