Why doesn't this work?
I have a main "struct CatRec" Structure. Each Cat can have several Kittens,so i created a structure for the kittens...so now each CAt can have a maximum of 20 Kittens...but this doesn't work. C doesn't accept the [20] Array. PLEASE HELP!
Code:
// STRUCTURES
struct KittenRec {
int kittennum; // Kitten Number
char kittenname[10]; // Kitten Name
char kittenParentName[10]; // Kitten ParentName
int kittenParentNum; // Kitten ParentNum
char type[20]; // Type of Kitten
char genuine; // Genuine Breed
char color[10]; // The Color of the Kitten
};
struct CatRec {
int catnum;
char catname[10]; // Cat Name
char gender; // The Gender of the Cat: M,F
char type[20]; // Type of Cat
char color[10]; // The Color of the Cat
int age; // Age of Cat
char genuine; // Genuine Breed
float sellingprise;
int medalswon;
float income;
struct KittenRec Kittens[20];
};