📄 adjlist.cpp
字号:
// AdjList.cpp: implementation of the CAdjList class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DFAv1.h"
#include "AdjList.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CAdjList::CAdjList()
{
m_pFirstNode = NULL;
}
CAdjList::~CAdjList()
{
}
BOOL CAdjList::ConstructAdjList(vNode AdjList[],int iNodeCount,const vData * pArray)
{
int i,j;
m_pFirstNode = AdjList;
m_iNodeCount = iNodeCount;
for(i = 0 ; i < m_iNodeCount ; i++)
{
AdjList[i].pvData =
for(j = 0 ; j < m_iNodeCount ; j++)
{
}
}
return TRUE;
}
pNode * CAdjList::GetFirstpNode(int ivNodeIndex)
{
return (m_pFirstNode+ivNodeIndex)->pAdj;
}
pNode * CAdjList::GetNextpNode(pNode *pCurpNode)
{
return pCurpNode->pNext;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -