📄 cachedoc.h
字号:
// CacheDoc.h : interface of the CCacheDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CACHEDOC_H__49994792_3BD2_4F2B_A4E2_5B320BFD898A__INCLUDED_)
#define AFX_CACHEDOC_H__49994792_3BD2_4F2B_A4E2_5B320BFD898A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CCacheDoc : public CDocument
{
protected: // create from serialization only
CCacheDoc();
DECLARE_DYNCREATE(CCacheDoc)
// Attributes
public:
bool m_draw;
int m_select;
int m_way_select;
int m_set_select;
bool m_dark;
int m_hit;
int Count;
long CAddress;
CBlock CCache[511][511];
CBlock CIns_Cache[511][511];
CInfor NewBlock;
char Charname;
bool readfile(LPCTSTR filename); //读文件
//bool OnOpenDocument(LPCTSTR lpszPathName);
bool GoodFile;
char buffer[65530],temp;
long Add_buffer[65530];
int I_count;
int J_count;
int Set_Num;
DWORD m_timeout;
int Ins_pointer;
int Ins_Set_Num;
int Ins_Count;
void a1();
float m_hitnum;
float m_missnum;
float m_missrate;
bool m_dark_begin;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCacheDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CCacheDoc();
void DrawAll();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CCacheDoc)
afx_msg void OnEditDo();
afx_msg void OnBlocksize4();
afx_msg void OnUpdateBlocksize4(CCmdUI* pCmdUI);
afx_msg void OnBlocksize8();
afx_msg void OnUpdateBlocksize8(CCmdUI* pCmdUI);
afx_msg void OnBlocksize16();
afx_msg void OnUpdateBlocksize16(CCmdUI* pCmdUI);
afx_msg void OnBlocksize32();
afx_msg void OnUpdateBlocksize32(CCmdUI* pCmdUI);
afx_msg void OnBlocksize64();
afx_msg void OnUpdateBlocksize64(CCmdUI* pCmdUI);
afx_msg void OnSetSize16();
afx_msg void OnUpdateSetSize16(CCmdUI* pCmdUI);
afx_msg void OnSetSize32();
afx_msg void OnUpdateSetSize32(CCmdUI* pCmdUI);
afx_msg void OnSetSize4();
afx_msg void OnUpdateSetSize4(CCmdUI* pCmdUI);
afx_msg void OnSetSize64();
afx_msg void OnUpdateSetSize64(CCmdUI* pCmdUI);
afx_msg void OnSetSize8();
afx_msg void OnUpdateSetSize8(CCmdUI* pCmdUI);
afx_msg void OnWaySize16();
afx_msg void OnUpdateWaySize16(CCmdUI* pCmdUI);
afx_msg void OnWaySize32();
afx_msg void OnUpdateWaySize32(CCmdUI* pCmdUI);
afx_msg void OnWaySize4();
afx_msg void OnUpdateWaySize4(CCmdUI* pCmdUI);
afx_msg void OnWaySize64();
afx_msg void OnUpdateWaySize64(CCmdUI* pCmdUI);
afx_msg void OnWaySize8();
afx_msg void OnUpdateWaySize8(CCmdUI* pCmdUI);
afx_msg void OnFileOpen();
//afx_msg void OnContunue();
afx_msg void OnUpdateEditDo(CCmdUI* pCmdUI);
afx_msg void OnUpdateContinu(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CACHEDOC_H__49994792_3BD2_4F2B_A4E2_5B320BFD898A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -