Home > Back-end >  Structure pointer with wrong? O bosses give directions
Structure pointer with wrong? O bosses give directions

Time:10-26

CodePudding user response:

L=(SqList *) malloc (sizeof (SqList));//pointer initialization, to initialize the memory (application)

CodePudding user response:

Pointer variable like period room room number, apply for memory is like making a room, modify the content like to decorate, you buy a plan, then find a decoration company, speaking with a TV wall, then decorate a company to set out, go to a look at the house didn't find or a hole, so feedback to you make a mistake, the address was not found,

CodePudding user response:

Before using the pointer is pointing to an entity
SqList * L=new SqList;

CodePudding user response:

Reading a book, you this belong to it's not a basic concept for pointer, estimates that more say more

CodePudding user response:

Need to allocate memory, or let the pointer to an object
  • Related