[자료구조 자료구조] 기사의 여행 소스 (MFC)
- 최초 등록일
- 2004.02.12
- 최종 저작일
- 2004.02
- 2페이지/ 압축파일
- 가격 1,000원
소개글
MFC를 이용하여 기사의 여행을 나타냄
목차
없음
본문내용
// Knight.cpp: implementation of the CKnight class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "wknight.h"
#include "Knight.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
/***************************************
* 이름 : CKnight :: CKnight()
* 기능 : 변수 초기화
* 인자 : void
* 리턴 :
***************************************/
CKnight :: CKnight () {
knightMove[0].setXY (-1, -2);
knightMove[1].setXY ( 1, -2);
knightMove[2].setXY ( 2, -1);
knightMove[3].setXY ( 2, 1);
knightMove[4].setXY ( 1, 2);
knightMove[5].setXY (-1, 2);
knightMove[6].setXY (-2, 1);
knightMove[7].setXY (-2, -1);
reset();
참고 자료
비주얼 C++ MFC 프로그래밍 가이드
압축파일 내 파일목록
black.bmp
black.gif
board.bmp
Knight.cpp
knight.h
ReadMe.txt
resource.h
resource.hm
StdAfx.cpp
StdAfx.h
white.bmp
white.gif
wknight.aps
wknight.clw
wknight.cpp
wknight.dsp
wknight.dsw
wknight.h
wknight.ncb
wknight.opt
wknight.plg
wknight.rc
wknightDlg.cpp
wknightDlg.h
res/wknight.ico
res/wknight.rc2