From: "A.Appleyard" Organization: Materials Science Centre To: DJGPP AT DELORIE DOT COM Date: Wed, 9 Oct 1996 14:11:07 GMT Subject: Labelled array display element funny Message-ID: <7E03B4350B@fs2.mt.umist.ac.uk> This program:- 1 #include 2 typedef struct{char *codeno; char*name;} craft; 3 craft dsub[128]={ 4 [1] {"CH79","Aphanistor"}, 5 [55] {"DS1 ","Quackers"}, 6 [56] {"DS2 ","Donald"}, 7 [23] {"BA32","Big Jim"}, 8 [35] {"FA65","Trelawney"}}; 9 main(){} produced these errors:- t$.cc:5: parse error before `[' t$.cc:5: warning: aggregate has a partly bracketed initializer t$.cc:6: parse error before `[' What have I done wrong here? Or can't I use array element labels when the elements are subarray displays?