📄 arithmeticlistview.h
字号:
#if !defined(AFX_ARITHMETICLISTVIEW_H__01E836F7_49B9_4F45_A49D_CBB3FC122A33__INCLUDED_)
#define AFX_ARITHMETICLISTVIEW_H__01E836F7_49B9_4F45_A49D_CBB3FC122A33__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ArithmeticListView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CArithmeticListView view
#include <Afxcview.h>
class CArithmeticListView : public CListView //算法显示部分
{
protected:
CArithmeticListView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CArithmeticListView)
// Attributes
public:
static void CALLBACK OnTimerExcute(HWND hWnd,UINT nMsg,UINT nIDEvent,DWORD dwTime);
// Operations
public:
void SetOdd();
void OnStop();
void SetArithmeticTimer();
void AddDemoData(int n, double m, char *p, char *w);
void OnExecute();
double m_price[100];
double m_weight[100];
double m_x[100];
int m_number;
double m_totalweight;
int m_serize; //将要装载物体的序号
int m_linenumber;
int m_linepronumber; //程序将要执行的行号
double m_s; //总效益
bool m_bstop; //是否暂停或停止
bool m_odd; //是否单步执行
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CArithmeticListView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CArithmeticListView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CArithmeticListView)
// 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_ARITHMETICLISTVIEW_H__01E836F7_49B9_4F45_A49D_CBB3FC122A33__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -