while(NULL!=pnode)
{
/*for(i=0;i<G->getvsize();i++)
{
if((G->getVertex(i).x-pnode->adjvex.x<0.00000001)&&(G->getVertex(i).y=pnode->adjvex.y<0.00000001)
}*/
d[pnode->subsequnce]=pnode->length;
p[pnode->subsequnce]=u;
pnode=pnode->next;
if (NULL!=pnode) //用于判断指针是否为空
{
break;
}
}
如图 指针为0xcdcdcd 但仍跳入了判断语句
谢谢~