Original Post
I'm building a program that has to load several image files on different sizes and store values in an array. I was planning to have an array such as: float image_data[IMAGE_INDEX][IMAGE_X * IMAGE_Y]; Problem is that since any image will have a different size (i mean different numbers of x and y pixels), and IMAGE_X * IMAGE_Y must be a constant, i can only put an extremely high IMAGE_X * IMAGE_Y value and fill the array. In practice, if the image is 300x300 and IMAGE_X * IMAGE_Y is 1024x1024, i will have an array filled with values and with a long tail of 0's. To my knowledge there is no way to dinamically resize an array in C++ , so i'd like to know what possible "tricks" i might use. Thanks