C help

Associate
Joined
30 Jun 2003
Posts
2,237
Location
Sussex
okay. a few questions here. i'll say how i'd do it and you can laugh and correct.

i want a library of images in a dynamically-managed data structure.

so as we don't know the sizes of size and pixels:

Code:
struct image{
  char name[MAX_NAME_SIZE];
  int size;
  float pixels[MAX_IMG_SIZE]
};

would pointers be better?

then would an double-linked list suffice for the data structure? it has be able to have an entry added, and deleted by name.
 
Back
Top Bottom