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

📄 dot04_20view.h

📁 计算24点的C++源码
💻 H
字号:
// Dot04_20View.h : interface of the CDot04_20View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DOT04_20VIEW_H__9DCE1D2C_3CA9_11D8_95A1_5700A7317E6F__INCLUDED_)
#define AFX_DOT04_20VIEW_H__9DCE1D2C_3CA9_11D8_95A1_5700A7317E6F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CDot04_20View : public CFormView
{
protected: // create from serialization only
	CDot04_20View();
	DECLARE_DYNCREATE(CDot04_20View)

public:
	//{{AFX_DATA(CDot04_20View)
	enum { IDD = IDD_DOT04_20_FORM };
	int		m_score;
	int		m_time;
	CString	m_input;
	int	m_ju;
	int	m_lun;
	CString	m_mtd;
	BOOL	m_none;
	//}}AFX_DATA

// Attributes
public:
	CDot04_20Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDot04_20View)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	int count;
	int stop;
	int h;
	int noanswer;
	CString R;
	int S;
	int n;
	int TotalCompute(CString Str);
	int SubCompute(CString Str);
	char AnyFirstF(CString Str);
	int AnyFirstPos(CString Str);
	int AnyLastPos(CString Str);
   // int pow;
	COLORREF color;//背景颜色
	int compu1(float i1,float i2,float i3,float i4,CString &s);
	float compu3(float i1,float i2,int i);
	CString compu(int i1,int i2,int i3,int i4);
	char *stopstring;
	int t4;//牌的值
	int t3;
	int t2;
	int t1;
	int a;
	int z;
	int y;
	int x;
	int i;
	CBitmap m_Bitmapback;
	CBitmap bbjmap[5];
	CBitmap m_Bitmap[53];//存放所有牌的数组
	CButton *m_card[5];  //五张牌的指针
	virtual ~CDot04_20View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDot04_20View)
	afx_msg void OnCard1();
	afx_msg void OnCard2();
	afx_msg void OnCard3();
	afx_msg void OnCard4();
	afx_msg void OnCard5();
	afx_msg void OnYes();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton5();
	afx_msg void OnButton6();
	afx_msg void OnStop();
	afx_msg void OnChangeEdit();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnChangecolor();
	afx_msg void OnStart();
	afx_msg void OnNone();
	afx_msg void OnChangecard();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Dot04_20View.cpp
inline CDot04_20Doc* CDot04_20View::GetDocument()
   { return (CDot04_20Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DOT04_20VIEW_H__9DCE1D2C_3CA9_11D8_95A1_5700A7317E6F__INCLUDED_)

⌨️ 快捷键说明

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