edge.cpp
来自「最短路径算法」· C++ 代码 · 共 26 行
CPP
26 行
// Edge.cpp: implementation of the CEdge class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Edge.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CEdge::CEdge()
{
m_red = false;
srand( (unsigned)time( NULL ) );
m_cost = rand()%10;
}
CEdge::~CEdge()
{
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?