Welcome![Sign In][Sign Up]
Location:
Search - FPoint

Search list

[OtherFPoint

Description: 1.生成mfc基于对话框的模块。 2.绘制表格,获取对话框的宽度和高度后画线等分。在onpaint函数内操作的,画棋子也是在其中操作的。 3.根据表格的交界和数组对应,就相当于一个点看作一个元素。同时每个点对应的坐标值是可以算出来的,就是等分原理。比如总长100,坐标就是10,20,。。 4.事件映射数组,有一个双击事件,用来获取鼠标的光标值,这个值和网格点的哪个值最接近就算是哪个点被点击了。 5被点击后数组用1,2标志。onpaint里话棋子,如果为1,2就画两种不同的子。 6,算法,就是看数组中子的情况。比如有五个连续的1,那么就提升我赢了。具体判断可以用一个点一个点的if。 7,是倒推的,如果发现电脑自己有4子,就把盘边的子值设置为2.否则发现自己有3子,且可胜也置2.没中情况都写成函数。具体可见程序。-1. Generate mfc dialog based module. 2. Drawing table, get the width and height of the dialog box after drawing a line decile. Operating within the function in onpaint painting pieces in which the operation is. 3. According to the junction and the array of forms corresponding to the equivalent of a point as an element. While the corresponding coordinates of each point can be counted out, is the attainment theory. Such as total length of 100, the coordinates are 10,20,. . 4. Incident mapping array, a double-click the event, to get the mouse cursor value, the value and the value of the nearest grid point which even the point which was clicked. 5 After the array was clicked with the 1,2 mark. onpaint pieces in it, if it is 1,2 on two different sub-paint. 6, the algorithm is to see an array of neutron situation. For example, five consecutive one, then upgrade and I won. Determine a specific point can be a point of if. 7, is pushed down, and if found to computer they have four c
Platform: | Size: 4722688 | Author: 李龙 | Hits:

[Embeded LinuxFPoint

Description: C++实现的一个五子棋,能够实现基本的功能,可以用来做练习使用,学习c++的好资料!-A backgammon C++ implemented to achieve the basic functionality can be used to do the exercises, learning c++ good information!
Platform: | Size: 4748288 | Author: 孔宪伟 | Hits:

CodeBus www.codebus.net