adjlist.cpp
来自「关于有穷自动机和正则表达式相互转化的程序」· C++ 代码 · 共 53 行
CPP
53 行
// 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 + =
减小字号Ctrl + -
显示快捷键?