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

📄 shixi07621view.h

📁 是数据结构实习很好的参考范本
💻 H
字号:
// shixi07621View.h : interface of the CShixi07621View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SHIXI07621VIEW_H__97739818_34CF_4F9B_97AD_DDE8B38C30F2__INCLUDED_)
#define AFX_SHIXI07621VIEW_H__97739818_34CF_4F9B_97AD_DDE8B38C30F2__INCLUDED_

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


class CShixi07621View : public CView
{
protected: // create from serialization only
	CShixi07621View();
	DECLARE_DYNCREATE(CShixi07621View)

// Attributes
public:
	CShixi07621Doc* GetDocument();
// Operations
public:
	CPoint Node[100];//存放顶点坐标Node
	int Quanz[100][100];//邻接矩阵Quanz[][]
	int dist[100];// 对于不属于S的顶点 ,从始点出发经过S中顶点到达终点的最短路径长度
	int path[100];//到终点的最短路径经过的最后一个顶点
	BOOL s[100];//最短路径已找到的重点 的集合



// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShixi07621View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	int  choose1(const int n);
	void ShortestPath1(int n,int v);
	void Draw();
	void drawpath1(int m_start, int m_end, CDC *pDC);
	void Quan();
	int paint;
	int Beij;
	
	int m_pd2;
	int m_pd;
	virtual ~CShixi07621View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CShixi07621View)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLine();
	afx_msg void OnXslu();
	afx_msg void OnMulu();
	afx_msg void OnClear();
	afx_msg void OnCzhao();
	afx_msg void OnMap();
	afx_msg void OnXsbj();
	afx_msg void OnEllipse();
	afx_msg void OnRetangel();
	afx_msg void OnDoubleclickedCancel();
	afx_msg void OnBhao();
	afx_msg void OnShort();
	afx_msg void OnClear1();
	afx_msg void OnTianJ();
	afx_msg void OnChjian();
	afx_msg void OnDelete();
	afx_msg void OnLuj1();
	afx_msg void OnSm();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in shixi07621View.cpp
inline CShixi07621Doc* CShixi07621View::GetDocument()
   { return (CShixi07621Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SHIXI07621VIEW_H__97739818_34CF_4F9B_97AD_DDE8B38C30F2__INCLUDED_)

⌨️ 快捷键说明

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