Home > Back-end >  0 xc0000005: while reading position 0 XCCCCCCCC access conflict. People to help us see, urgent!!!
0 xc0000005: while reading position 0 XCCCCCCCC access conflict. People to help us see, urgent!!!

Time:09-30

Error code:
Void DFSALGraph (ALGraph G, int v)
{
Int Visited [MvNum], w=0;

CoutVisited [v]=1;
ArcNode * p;
P=new ArcNode;
P=G.v ertices [v] Firstarc;
While (p!=NULL)
{
W=p - & gt; Adjvex;
if(! Visited [w])
DFSALGraph (G, w);
P=p - & gt; Nextarc;
}
The delete p;
}

CodePudding user response:

MvNum, where the variable initialization?

CodePudding user response:

In the header file defined, the # define MvMum 100

CodePudding user response:

Pointer to access errors

CodePudding user response:

One step, and see what is the exact cause of AV one line of code

CodePudding user response:

Boon boon, has been solved, thank you