Hi,
Is there any simpler way of initiating an array used in a class than looping or single instance init.
I want to do EXACTLY as the code states but I don't get the damn thing working.
/SCode:typedef void InstructionProc(uint32_t icode); typedef struct Instruction { uint32_t mask; uint32_t value; char *name; InstructionProc *proc; } Instruction; class test { Instruction instr[]; } test::test() { instr[] = { {0x0de00000,0x00a00000,"adc" ,i_adc} }; }



LinkBack URL
About LinkBacks



CornedBee