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

📄 collegemap.h

📁 这是我写的数据结构的课设
💻 H
字号:
// CollegeMap.h: interface for the CCollegeMap class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COLLEGEMAP_H__D4FB2C64_CEAD_4CC9_B618_1BD0E6E5CD79__INCLUDED_)
#define AFX_COLLEGEMAP_H__D4FB2C64_CEAD_4CC9_B618_1BD0E6E5CD79__INCLUDED_

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

class CCollegeMap : public CObject  
{
private:
	BOOL m_VisitedTag;
	int m_totalOfVertexs;				//总景点、建筑点数
	int m_totalOfPaths;					//总道路数
	class CVertex * vertexList;			//存储景点、建筑的链表
public:	
	CVertex * GetVertexList();
	int GetTotalOfPaths();
	int GetTotalOfVertexs();
	void SetVertexList(CVertex* VERTEXLIST);
	void SetTotalOfPaths(int totalOfPaths);
	void SetTotalOfVertexs(int totalOfVertexs);
public:	
	BOOL DrawPath(int j,int k);
	CVertex* GetVertexAt(int index);
	class CPath* GetPathAt(int index);
	int GetIndex(CPoint point[],int n,CPoint location);
	void SetVisitedTag();
	BOOL GetVisitedTag();
	CVertex* SearchVertex(CPoint point);
	int IsLocatedIn(CPoint point);
//为什么这里的class不能去掉,???而别的能?//为什么这里的class不能去掉,???而别的能?
	BOOL GetAllPaths(CVertex *vertex1,CVertex *vertex2);
	BOOL GetShortestPath(CVertex *vertex1,CVertex *vertex2);
	BOOL GetInformation(class CPath* path);
	BOOL GetInformation(CVertex* vertex);
//	CCollegeMap(class CFile * file);//这个函数是否需要还是个未知数!!!!!
	BOOL InsertPath(class CPath * path);	//插入一条道路//为什么这里的class不能去掉,???而别的能?
	BOOL InsertVertex(CVertex * vertex);	//插入一个景点或建筑
	BOOL DeleteVertex(CVertex * vertex);	//删除景点、建筑
	BOOL DeletePath(CPath * path);			//删除道路
	CCollegeMap();
	virtual ~CCollegeMap();
friend class CPath;//友元类
friend class CCollegeMap;//友元类
};

#endif // !defined(AFX_COLLEGEMAP_H__D4FB2C64_CEAD_4CC9_B618_1BD0E6E5CD79__INCLUDED_)

⌨️ 快捷键说明

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