⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graph.h

📁 与本人上次上传的类别一样
💻 H
字号:
// Graph.h: interface for the CGraph class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GRAPH_H__7185858A_FFBA_4A9D_AFAF_7888D09729A7__INCLUDED_)
#define AFX_GRAPH_H__7185858A_FFBA_4A9D_AFAF_7888D09729A7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <vector>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
using namespace std;

class CGraph  
{
public:
	void init(CDC *pDC);
	void init2(CDC *pDC);
	void DrawCity(CDC *pDC);
	void DrawPath(vector <int> Cities,CDC *pDC);
	CGraph();
	virtual ~CGraph();
	
	struct SPoint
	{
		double x;
		double y;
	};
	SPoint m_CityPoint[2000];
	SPoint m_CityDrawPoint[2000];

private:
	CDC mem;
};

#endif // !defined(AFX_GRAPH_H__7185858A_FFBA_4A9D_AFAF_7888D09729A7__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -