Void DFSALGraph (ALGraph G, int v)
{
Int Visited [MvNum], w=0;
Cout
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 100CodePudding user response:
Pointer to access errorsCodePudding user response:
One step, and see what is the exact cause of AV one line of codeCodePudding user response:
Boon boon, has been solved, thank you