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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/08/01 16:00
Read: times


 
#13932 - RE: initialising values of structure
Assuming it's like normal C compiliers, the you should eb able to do something like :-


struct fred
{
char value1;
word value2;
float value3;
char string1[10]
};


struct fred Example = { 18,32767,56,6,"hello"};

so for each structure you want, you create them like this.

Chris Brooks

List of 6 messages in thread
TopicAuthorDate
initialising values of structure            01/01/70 00:00      
RE: initialising values of structure            01/01/70 00:00      
RE: initialising values of structure            01/01/70 00:00      
RE: initialising values of structure            01/01/70 00:00      
RE: initialising values of structure            01/01/70 00:00      
RE: initialising values of structure            01/01/70 00:00      

Back to Subject List