?? cmydoc.h
字號(hào):
// CMyDoc.h : interface of the CMyDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CMYDOC_H__4E9DC232_207D_47E5_A7AF_B0361B95049A__INCLUDED_)
#define AFX_CMYDOC_H__4E9DC232_207D_47E5_A7AF_B0361B95049A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
class CMyDoc : public CDocument
{
protected: // create from serialization only
CMyDoc();
DECLARE_DYNCREATE(CMyDoc)
// Attributes
public:
// Operations
public:
/*************************************************/
int w_vexnum; //頂點(diǎn)數(shù)目
int w_arcnum; //邊數(shù)
vector<CString> w_vecname;//頂點(diǎn)名稱(chēng),
UINT w_arcs[10][10]; //圖矩陣。最多10個(gè)頂點(diǎn)
map<int,CPoint> w_vecmap;//下標(biāo),頂點(diǎn)坐標(biāo)
bool w_isbegindraw;
void W_init(); //初始其他相關(guān)信息
void W_initVexmap(); //初始頂點(diǎn)坐標(biāo)
/*************************************************/
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMyDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CMYDOC_H__4E9DC232_207D_47E5_A7AF_B0361B95049A__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)