fragy153
March 7th, 2005, 07:57 AM
Hi Guys
I have the following problem
I am writting an MFC application to create 2-D graphs. The data for these graphs will be imported from text files. ( x and y coordinates)
Sometimes these files can be really large ( which means millions of points)
I guess I need to load all this data to the memory. And then sample from it what i need to display to the screen.
What is the best best way to store this data to the memory??
Is dynamic memory allocation with malloc and realloc OK?
Or should I use vectors??
Any other ideas??
thanks!
I have the following problem
I am writting an MFC application to create 2-D graphs. The data for these graphs will be imported from text files. ( x and y coordinates)
Sometimes these files can be really large ( which means millions of points)
I guess I need to load all this data to the memory. And then sample from it what i need to display to the screen.
What is the best best way to store this data to the memory??
Is dynamic memory allocation with malloc and realloc OK?
Or should I use vectors??
Any other ideas??
thanks!