Hi have this code
Expand|Select|Wrap|Line Numbers
- struct SF {
- std::string mnemonic;//mnemonic that represents it
- std::string name;//a descriptive name
- ushort num_val1;// number of the first value
- uchar possiblevalues_num; //number of the possible values.
- uchar type; /* = 1 if the feature is utilized in the models*/
- };
the next step i allocate an array of SF structs and try to do it
Expand|Select|Wrap|Line Numbers
- SF * FTab;
- FTab = (SF *) calloc(6, sizeof(SF));
- FTab[0].num_val1 = (ushort) 5;
- FTab[0].mnemonic("xpto");
PS- sorry for the bad english.