91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 11.37MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-07
  • 語言: C/C++
  • 標簽: MFC??C++??VC??連連看??

資源簡介

MFC做的連連看,包含源代碼和注釋,實現了消除、畫路徑、計時、提示、重排、高分記錄等功能,相對簡單,想要寫個小程序練習的同學可以看看

資源截圖

代碼片段和文件信息

//?LLKAddDlg.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“LLKan.h“
#include?“LLKAddDlg.h“
#include?“afxdialogex.h“
#include?“LLKanDlg.h“

//?CLLKAddDlg?dialog

IMPLEMENT_DYNAMIC(CLLKAddDlg?CDialogEx)

CLLKAddDlg::CLLKAddDlg(CWnd*?pParent?/*=NULL*/)
:?CDialogEx(CLLKAddDlg::IDD?pParent)
{

m_name?=?_T(““);
m_score?=?0;
m_level?=?0;

}

CLLKAddDlg::~CLLKAddDlg()
{
}

void?CLLKAddDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX?IDC_EDIT1?m_name);
DDX_Text(pDX?IDC_EDIT2?m_score);
DDX_Text(pDX?IDC_EDIT3?m_level);

}


BEGIN_MESSAGE_MAP(CLLKAddDlg?CDialogEx)
ON_BN_CLICKED(IDOK?&CLLKAddDlg::OnBnClickedOk)
END_MESSAGE_MAP()


//?CLLKAddDlg?message?handlers

//保存記錄
void?CLLKAddDlg::OnBnClickedOk()
{
//?TODO:?Add?your?control?notification?handler?code?here

UpdateData(TRUE);

if(m_name?!=?_T(““))
{
CStdioFile?mFile;?
CFileException?mExcept;
if(!mFile.Open(_T(“record.txt“)CFile::modeWrite&mExcept))
mFile.Open(_T(“record.txt“)CFile::modeCreate|CFile::modeWrite&mExcept);
CString?str;
mFile.SeekToEnd();
//將記錄寫入文件的最后面
str.Format(_T(“%s\n“)m_name);
mFile.WriteString(str);
str.Format(_T(“%d\n“)m_score);
mFile.WriteString(str);
str.Format(_T(“%d\n“)?m_level);
mFile.WriteString(str);
CDialog::OnOK();
}
else?
AfxMessageBox(_T(“請輸入姓名!“));
//CDialogEx::OnOK();
}


BOOL?CLLKAddDlg::OnInitDialog()
{
CDialogEx::OnInitDialog();

//?TODO:??Add?extra?initialization?here
//通關父窗口指針parent來獲取分數?和?關卡數(m_typeNum-1)
CLLKanDlg?*parent?=?(CLLKanDlg?*)GetParent();
m_level?=?parent->m_typeNum-1;
m_score?=?parent->m_score;
UpdateData(FALSE);
return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-11-28?09:09??LLKan\
?????目錄???????????0??2013-11-28?00:51??LLKan\Debug\
?????文件???????59162??2013-11-28?00:45??LLKan\Debug\CL.read.1.tlog
?????文件????????6604??2013-11-28?00:45??LLKan\Debug\CL.write.1.tlog
?????文件???????33725??2013-11-28?00:28??LLKan\Debug\LLKAddDlg.obj
?????文件???????38046??2013-11-27?22:01??LLKan\Debug\LLKRecordDlg.obj
?????文件?????????915??2013-11-24?09:35??LLKan\Debug\LLKan.exe.embed.manifest
?????文件?????????980??2013-11-24?09:35??LLKan\Debug\LLKan.exe.embed.manifest.res
?????文件?????????640??2013-11-28?00:45??LLKan\Debug\LLKan.exe.intermediate.manifest
?????文件??????????44??2013-11-28?00:45??LLKan\Debug\LLKan.lastbuildstate
?????文件????????2223??2013-11-28?00:45??LLKan\Debug\LLKan.log
?????文件???????30031??2013-11-28?00:28??LLKan\Debug\LLKan.obj
?????文件????33685504??2013-11-24?09:35??LLKan\Debug\LLKan.pch
?????文件???????70400??2013-11-27?22:04??LLKan\Debug\LLKan.res
?????文件?????????713??2013-11-24?09:35??LLKan\Debug\LLKan.vcxprojResolveAssemblyReference.cache
?????文件???????????0??2013-11-24?09:35??LLKan\Debug\LLKan.write.1.tlog
?????文件???????40368??2013-11-28?00:45??LLKan\Debug\LLKanButton.obj
?????文件???????75200??2013-11-28?00:45??LLKan\Debug\LLKanDlg.obj
?????文件?????????200??2013-11-24?09:35??LLKan\Debug\LLKan_manifest.rc
?????文件???????23445??2013-11-26?15:03??LLKan\Debug\LineStatic.obj
?????文件????????4810??2013-11-28?00:45??LLKan\Debug\cl.command.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link-cvtres.read.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link-cvtres.write.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.12660-cvtres.read.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.12660-cvtres.write.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.12660.read.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.12660.write.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.15324-cvtres.read.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.15324-cvtres.write.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.15324.read.1.tlog
?????文件???????????2??2013-11-28?00:45??LLKan\Debug\link.15324.write.1.tlog
............此處省略100個文件信息

評論

共有 條評論