I'd say he's 50% there. Need to malloc each struct. Or stop using an array of pointers to structs and just use an array of 10 structs. population[10] (without the *)
[ never mind. slingerland3g has already suggested it... while I was posting. ]
I'd say he's 50% there. Need to malloc each struct. Or stop using an array of pointers to structs and just use an array of 10 structs. population[10] (without the *)
[ never mind. slingerland3g has already suggested it... while I was posting. ]
Last edited by nonoob; 03-29-2010 at 03:08 PM.