1 / 16
文档名称:

C源码-ERA1nov11.doc

格式:doc   大小:1,497KB   页数:16页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

C源码-ERA1nov11.doc

上传人:玉玲珑 9/21/2022 文件大小:1.46 MB

下载得到文件列表

C源码-ERA1nov11.doc

相关文档

文档介绍

文档介绍:该【C源码-ERA1nov11 】是由【玉玲珑】上传分享,文档一共【16】页,该文档可以免费在线阅读,需要了解更多关于【C源码-ERA1nov11 】的内容,可以使用淘豆网的站内搜索功能,选择自己适合的文档,以下文字是截取该文章内的部分文字,如需要获得完整电子版,请下载此文档到您的设备,方便您编辑和打印。C源码-ERA1nov11
C++源码(Kit3907A1)
voidHideSplashScreen();
staticBOOLc_iwKbShowSplashWnd;
staticCSplashWndc_iwKpSplashWnd;
//Generatedmessagemapfunctions
protected:
{{AFX_iwKMSG(CSplashWnd)
afx_iwKmsgintOnCreate(LPCREATESTRUCTlpCreateStruct);
afx_iwKmsgvoidOnPaint();
afx_iwKmsgvoidOnTimer(UINTnIDEvent);
}}AFX_iwKMSG
DECLARE_iwKMESSAGE_iwKMAP()
};
#endif
#if!defined(AFX_iwKCUSTOMTREE_iwKH_iwK940239A8_iwK3DA6_iwK46F4_iwK92FB_iwKE2253693A832_iwKINCLUDED_iwK)
#defineAFX_iwKCUSTOMTREE_iwKH_iwK940239A8_iwK3DA6_iwK46F4_iwK92FB_iwKE2253693
virtualvoidDoDbClick();
Overrides
//ClassWizardgeneratedvirtualfunctionoverrides
{
{AFX_iwKVIRTUAL(CCustomTree)
public:
virtualvoidOnInitialUpdate();
virtualBOOLOnCmdMsg(UINTnID,intnCode,voidpExtra,AFX_iwKCMDHANDLERINFOpHandlerInfo);
protected:
virtualBOOLOnNotify(WPARAMwParam,LPARAMlParam,LRESULTpResult);
virtualvoidOnUpdate(CViewpSender,LPARAMlHint,CObjectpHint);
virtualBOOLOnCommand(WPARAMwParam,LPARAMlParam);
virtualvoidOnDraw(CDCpDC);
afx_iwKmsgHBRUSHOnCtlColor(CDCpDC,CWndpWnd,UINTnCtlColor);
}
}AFX_iwKVIRTUAL
Implementation
protected:
virtual~CCustomTree();
#ifdef_iwKDEBUG
virtualvoidAssertValid()const;
virtualvoidDump(CDumpContext&dc)const;
#endif
Generatedmessagemapfunctions
protected:
{
{AFX_iwKMSG(CCustomTree)
afx_iwKmsgvoidOnDblclk(NMHDRpNMHDR,LRESULTpResult);
afx_iwKmsgvoidOnSize(UINTnType,intcx,intcy);
}
}AFX_iwKMSG
DECLARE_iwKMESSAGE_iwKMAP()
};
{{AFX_iwKINSERT_iwKLOCATION}}
MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.
#endif!defined(AFX_iwKCUSTOMTREE_iwKH_iwK940239A8_iwK3DA6_iwK46F4_iwK92FB_iwKE2253693A832_iwKINCLUDED_iwK)
:interfacefortheCDCheckclass.
#if!defined(AFX_iwKDCHECK_iwKH_iwK4D237061_iwK2F6B_iwK4826_iwKA67B_iwK81DAA5B16EFC_iwKINCLUDED_iwK)
#defineAFX_iwKDCHECK_iwKH_iwK4D237061_iwK2F6B_iwK4826_iwKA67B_iwK81DAA5B16EFC_iwKINCLUDED_iwK
#if_iwKMSC_iwKVER>1000
#pragmaonce
#endif_iwKMSC_iwKVER>1000
#include""
classCDCheck:publicCDOperation
{
public:
voidOnRclickGrid(NMHDRpNMHDR,LRESULTpResult);
voidOnButSave();
voidOnSetfocusEdtman();
voidOnButEnrol();
voidInit();
CDCheck();
virtual~CDCheck();
};
#endif!defined(AFX_iwKDCHECK_iwKH_iwK4D237061_iwK2F6B_iwK4826_iwKA67B_iwK81DAA5B16EFC_iwKINCLUDED_iwK)
#include<>
#defineX8
#defineY8
intchess[X][Y];
intnextxy(int*x,int*y,intcount)
/*找到基于x,y位置的下一个可走的位置*/
{
switch(count)
{
case0:
if(*x+2<=X-1&&*y-1>=0&&chess[*x+2][*y-1]==0)
{
*x=*x+2;
*y=*y-1;
return1;
}
break;
case1:
if(*x+2<=X-1&&*y+1<=Y-1&&chess[*x+2][*y+1]==0)
{
*x=*x+2;
*y=*y+1;
return1;
}
break;
case2:
if(*x+1<=X-1&&*y-2>=0&&chess[*x+1][*y-2]==0)
{
*x=*x+1;
*y=*y-2;
return1;
}
break;
case3:
if(*x+1<=X-1&&*y+2<=Y-1&&chess[*x+1][*y+2]==0)
{
*x=*x+1;
*y=*y+2;
return1;
}
break;
case4:
if(*x-2>=0&&*y-1>=0&&chess[*x-2][*y-1]==0)
{
*x=*x-2;
*y=*y-1;
return1;
}
break;
case5:
if(*x-2>=0&&*y+1<=Y-1&&chess[*x-2][*y+1]==0)
{
*x=*x-2;
*y=*y+1;
return1;
}
break;
case6:
if(*x-1>=0&&*y-2>=0&&chess[*x-1][*y-2]==0)
{
*x=*x-1;
*y=*y-2;
return1;
}
break;
case7:
if(*x-1>=0&&*y+2<=Y-1&&chess[*x-1][*y+2]==0)
{