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

📄 225view.cpp

📁 可以随机生成彩票号码,自己从中选择,不必依赖福利彩票销售机的号码
💻 CPP
字号:
// 225View.cpp : implementation of the CMy225View class
//

#include "stdafx.h"
#include "225.h"

#include "225Doc.h"
#include "225View.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMy225View

IMPLEMENT_DYNCREATE(CMy225View, CView)

BEGIN_MESSAGE_MAP(CMy225View, CView)
	//{{AFX_MSG_MAP(CMy225View)
	ON_COMMAND(ID_OUTRESULT, OnOutresult)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMy225View construction/destruction

CMy225View::CMy225View()
{
	// TODO: add construction code here

}

CMy225View::~CMy225View()
{
}

BOOL CMy225View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CMy225View drawing

void CMy225View::OnDraw(CDC* pDC)
{
	CMy225Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here
		
}

/////////////////////////////////////////////////////////////////////////////
// CMy225View diagnostics

#ifdef _DEBUG
void CMy225View::AssertValid() const
{
	CView::AssertValid();
}

void CMy225View::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CMy225Doc* CMy225View::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMy225Doc)));
	return (CMy225Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMy225View message handlers

void CMy225View::OnOutresult() 
{
					
	int a,b,c,d,e;
	long result=0;
	for(a=1;a<23;a++)
	{
			for(b=1;b<23;b++)
			{
				for(c=1;c<23;c++)
				{
					for(d=1;d<23;d++)
					{
						for(e=1;e<23;e++)
						{
							if(a!=b && a!=c && a!=d && a!=e)
							{
								if(b!=c && b!=d && b!=e)
								{
									if(c!=d && c!=e)
									{
										if(d!=e)
										{
										   CString str;
										   str.Format("%d,%d,%d,%d,%d",a,b,c,d,e);
										}
									}
								}
							}
						}
					}
				}
			}
	}
	
}

⌨️ 快捷键说明

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