📄 lottery.h
字号:
// Lottery.h : main header file for the LOTTERY application
//
#if !defined(AFX_LOTTERY_H__75BEA14B_E2F7_40D7_84F9_9CB09E61C4FD__INCLUDED_)
#define AFX_LOTTERY_H__75BEA14B_E2F7_40D7_84F9_9CB09E61C4FD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include "afxtempl.h"
/////////////////////////////////////////////////////////////////////////////
// CLotteryApp:
// See Lottery.cpp for the implementation of this class
//
#define WM_NOTIFY_GRAPH_ACTION WM_USER+1000
#define MAX_SEQUENCY_NUMBER 15
#ifndef _LOTTERY
#define _LOTTERY
union LOTTERY
{
struct _T_
{
UINT t0,t1,t2,t3,t4,t5,t6,t7,t8;
}t;
UINT i[9];
public:
int GetBonusGrade(LOTTERY *plot);
double GetFS();
int GetEvenNumber(BOOL bSpecial);
UINT GetSum();
int GetAC();
void GetDifference(LOTTERY * plot, int *num, UINT *buf);
BOOL GetLotteryFromStr(CString &str);
UINT RelationAnalysis();
};
struct FREQUENCY
{
UINT f[30];
};
struct SEQUENCY
{
double s[MAX_SEQUENCY_NUMBER];
};
struct GRAPH
{
int s[MAX_SEQUENCY_NUMBER];
};
#endif //_LOTTERY
class CLotteryApp : public CWinApp
{
public:
CLotteryApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLotteryApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
public:
//{{AFX_MSG(CLotteryApp)
afx_msg void OnAppAbout();
// 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_LOTTERY_H__75BEA14B_E2F7_40D7_84F9_9CB09E61C4FD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -