MCtrlCode structure, Excuse me above such mistakes because no structure variable initialization? If you want to initialize and how to modify?
CodePudding user response:
You this is not a mistake, just member variables uninitialized, You define a constructor in MCtrlCode, give you initialize the members of the can,
CodePudding user response:
The constructor has not yet been implemented, to look again next step
CodePudding user response:
The constructor is write like this?
Node () : x (), STR (), data () {}//parameterless constructor array initialization calls when The node (int a, string b, char c) : data (a), STR (b), (c) x {}//a structure
CodePudding user response:
Memset (& amp; Testcmd, 0, sizeof (MCtrlCode));
I so initialization, program there is no change, same mistake pointer
CodePudding user response:
Next to the arrow is about to run code, pointing to the line of code is not yet running, didn't call the constructor, wrong Pointers are of course, you try to perform a line