資源簡介
學習VC串口時,利用MFC單文檔編寫的一個圍棋程序,可選擇單機玩和串口連接
代碼片段和文件信息
//?ChessPos.cpp:?implementation?of?the?CChessPos?class.
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“WQ.h“
#include?“ChessPos.h“
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
CChessPos::CChessPos()
{
}
CChessPos::~CChessPos()
{
}
//////////////////////////////////////////////////////////////////////
//?
//接收點位坐標,返回該點位所在矩形區域
CRect?CChessPos::chessman(CPoint?pt)
{
CRect?chess(pt.x-12?pt.y-12?pt.x+12?pt.y+12);
return?chess;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1218??2009-04-26?21:47??SelectComm.h
?????文件????????204??2009-04-07?11:02??StdAfx.cpp
?????文件???????1054??2009-04-07?11:02??StdAfx.h
?????文件????2285496??2010-05-15?19:59??WQ.APS
?????文件???????2597??2010-05-15?19:59??WQ.clw
?????文件???????4214??2009-04-26?20:51??WQ.cpp
?????文件???????5627??2009-04-27?22:53??WQ.dsp
?????文件????????573??2009-04-20?21:22??WQ.dsw
?????文件???????1312??2009-04-07?11:02??WQ.h
?????文件?????140288??2010-05-15?19:59??WQ.ncb
?????文件??????56832??2010-05-15?19:59??WQ.opt
?????文件???????2428??2010-05-15?19:59??WQ.plg
?????文件??????11099??2010-05-15?19:59??WQ.rc
?????文件???????8657??2009-04-28?10:30??WQDoc.cpp
?????文件???????2488??2009-04-27?19:15??WQDoc.h
?????文件??????23490??2009-04-28?15:23??WQView.cpp
?????文件???????2685??2009-04-26?20:30??WQView.h
?????文件?????942366??2009-04-28?15:29??res\BackGround1.bmp
?????文件????1274454??2009-04-27?21:23??res\BackGround2.bmp
?????文件??????12794??2009-04-27?21:23??res\BLACK.bmp
?????文件??????12794??2009-04-27?21:23??res\WHITE.bmp
?????文件???????1078??2009-04-07?11:02??res\WQ.ico
?????文件????????394??2009-04-07?11:02??res\WQ.rc2
?????文件???????1078??2009-04-07?11:02??res\WQDoc.ico
?????文件????????769??2009-04-07?20:56??ChessPos.cpp
?????文件????????828??2009-04-08?10:40??ChessPos.h
?????文件???????2522??2009-04-27?19:32??MainFrm.cpp
?????文件???????1465??2009-04-26?20:46??MainFrm.h
?????文件???????8569??2009-04-20?15:17??mscomm.cpp
?????文件???????3221??2009-04-20?15:17??mscomm.h
............此處省略7個文件信息
- 上一篇:C語言源代碼_球隊信息管理系統
- 下一篇:lz78壓縮編碼論文及源代碼
評論
共有 條評論