📄 arithdynamiclistview.h
字号:
#if !defined(AFX_ArithDynamicListView_H__01E836F7_49B9_4F45_A49D_CBB3FC122A33__INCLUDED_)
#define AFX_ArithDynamicListView_H__01E836F7_49B9_4F45_A49D_CBB3FC122A33__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ArithDynamicListView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CArithDynamicListView view
#include <Afxcview.h>
class CArithDynamicListView : public CListView //算法显示部分
{
protected:
CArithDynamicListView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CArithDynamicListView)
// Attributes
public:
static void CALLBACK OnTimerExcute(HWND hWnd,UINT nMsg,UINT nIDEvent,DWORD dwTime);
// Operations
public:
int F(int i, int y);
void SetOdd();
void OnStop();
void SetArithmeticTimer();
void AddDemoData(int n, int m, char *p, char *w);
void OnExecute();
int m_i;//程序显示部分的 计数变量
int m_price[100];
int m_weight[100];
int m_x[100];
int m_n; //维数n
int m_totalweight;
int m_y; //剩余的容量
int m_z; //求解X时,要用到的临时变量
int m_linenumber;
int m_linepronumber; //程序将要执行的行号
bool m_bstop; //是否暂停或停止
bool m_odd; //是否单步执行
CString vConst,vVary; //变量显示部分要显示的MaxValue的字符串
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CArithDynamicListView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CArithDynamicListView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CArithDynamicListView)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ArithDynamicListView_H__01E836F7_49B9_4F45_A49D_CBB3FC122A33__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -