Home > Back-end >  The access rights conflict here is why oh excuse me
The access rights conflict here is why oh excuse me

Time:10-12

Spent an afternoon here, the first one is the wrong position, behind the two is the source code, really need you big help, thank you

CodePudding user response:

Q is random value, because your structure of p - & gt; Initialization NextPig field is not NULL

CodePudding user response:

reference 1/f, the truth is right or wrong response:
q is a random value, because of your structure of p - & gt; NextPig field initialized not NULL

Thank you, excuse me how to modify

CodePudding user response:

refer to the second floor KZ37 response:
Quote: reference 1/f, the truth is right or wrong response:
q is a random value, because of your structure of p - & gt; NextPig field initialized not NULL

Thanks, excuse me how to modify things

If you are using c + +, in the class constructor, set the field is NULL.

CodePudding user response:

reference 3 floor truth is right or wrong response:
Quote: refer to the second floor KZ37 response:

Quote: reference 1/f, the truth is right or wrong response:
q is a random value, because of your structure of p - & gt; NextPig field initialized not NULL

Thanks, excuse me how to modify things

If you are using c + +, in the class constructor, set the field is NULL.

Hello, is that in structure or in SortPigsByName this function? Sorry, just learn c + + and data structure, many of them still do not understand

CodePudding user response:

Your mistake is in createpig this function
Less in return before the head, one line of code
P - & gt; PNextPig=NULL;
As a result, although the head back to the right, but the  tail
is not clear?
To sorting before, the first group of   out bold show a circle
You can see the tail wrong

CodePudding user response:

0 XCDCDCD such a look will know that the debug mode is the null pointer call,,

CodePudding user response:

Fun
reference 5 floor response:
your mistakes are in createpig this function
Less in return before the head, one line of code
P - & gt; PNextPig=NULL;
As a result, although the head back to the right, but the  tail
is not clear?
To sorting before, the first group of   out bold show a circle
You can see the tail wrong

Ok, thank you bosses
  • Related