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

📄 shortview.h

📁 一个路由器最短路径算法的源程序
💻 H
字号:
// shortView.h : interface of the CShortView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SHORTVIEW_H__F468B96A_927E_4EEA_BA07_CF40B97B0704__INCLUDED_)
#define AFX_SHORTVIEW_H__F468B96A_927E_4EEA_BA07_CF40B97B0704__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxmt.h>
struct biao                            
{
int distance;
int path[10];
};
typedef struct luyou               //路由表的数据结构
{
struct biao biao[10];
char computer[20];                             //带的主机号
                                 
int p;                                           
}luyou;
typedef struct canshu{
	int k;
}canshu;
class CShortView : public CView
{
protected: // create from serialization only
	CShortView();
	DECLARE_DYNCREATE(CShortView)

// Attributes
public:
	CShortDoc* GetDocument();

// Operations
public:	

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShortView)
	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:
	static UINT ThreadProc(LPVOID pPar);
	void mutiThread();
	
//	void shortPath();
	
	void backpatch(char x, char y);
	//static UINT ThreadProc(LPVOID Info);
    static void scat2(int x[10],int y[10]);
	static void scat1(int x[10],int y);
	static void snull(int x[10]);
	CShortDoc* dc;
	virtual ~CShortView();
#ifdef _DEBUG
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CShortView)
	afx_msg void OnShortShow();
	afx_msg void OnInit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in shortView.cpp
inline CShortDoc* CShortView::GetDocument()
   { return (CShortDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SHORTVIEW_H__F468B96A_927E_4EEA_BA07_CF40B97B0704__INCLUDED_)

⌨️ 快捷键说明

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