Hi there, i am looking for some help in structures.
I am not sure if i am going about this the right way but i am looking to use structures to store multipul details of one panel.
How does the basic struct work?
for instance, if the structure is:
how do i add an additional panel and then how do i recall specific infomation about this panel?Code:struct panel { char name[25]; int age; float cost; };
i am worried about having to have:
etc...Code:struct panel1 { char name[25]; int age; float cost; }; struct panel2 { char name[25]; int age; float cost; };
and only being able to have a finite number of panels.
I am I am missing something basic here, but could someone explain for me?
also i intend to store the info in a data file so when the user re-opens the program, (s)he is able to say load panel, and the program lists the previously saved panels, allowing the specific panel's details to be loaded for editing.
Any help would be awesome
Ste