Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/03 00:22
Read: times


 
#39497 - Arrays of structures
If i define a structure in c

typedef
struct
{unsigned char blah[5];
float burble;
}thing;

then i go

thing whatsit[10];
to create an array of structures called whatsit containing 10 things
can I then define
thing *pointer

and get the contents of whatsit[4] by going

pointer=whatsit[4]
stuff=((*pointer)+floop);


List of 9 messages in thread
TopicAuthorDate
Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
      RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
      RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      
      RE: Arrays of structures            01/01/70 00:00      
   RE: Arrays of structures            01/01/70 00:00      

Back to Subject List