虫虫首页|资源下载|资源专辑|精品软件
登录|注册

true

  • 贪吃蛇*要点分析: *1)数据结构:matrix[][]用来存储地图上面的信息

    贪吃蛇*要点分析: *1)数据结构:matrix[][]用来存储地图上面的信息,如果什么也没有设置为false, * 如果有食物或蛇,设置为true;nodeArray,一个LinkedList,用来保存蛇的每 * 一节;food用来保存食物的位置;而Node类是保存每个位置的信息。 *2)重要函数: * changeDirection(int newDirection) ,用来改变蛇前进的方向,而且只是 * 保存头部的前进方向,因为其他的前进方向已经用位置来指明了。 其中newDirection * 必须和原来的direction不是相反方向,所以相反方向的值用了同样的奇偶性。在测试 * 的时候使用了direction%2!=newDirection%2 进行判断。 * moveOn(),用来更新蛇的位置,对于当前方向,把头部位置进行相应改变。如果越界, * 结束;否则,检测是否遇到食物(加头部)或身体(结束);如果什么都没有,加上头部, * 去掉尾部。由于用了LinkedList数据结构,省去了相当多的麻烦。

    标签: matrix 贪吃蛇 数据结构

    上传时间: 2014-06-13

    上传用户:cjf0304

  • AutomaticPropertiesDefaultValues Article_src.zip PropertyInfo[] props = o.GetType().GetPropert

    AutomaticPropertiesDefaultValues Article_src.zip PropertyInfo[] props = o.GetType().GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static) for (int i = 0 i < props.Length i++) { PropertyInfo prop = props[i] if (prop.GetCustomAttributes(true).Length > 0) { object[] defaultValueAttribute = prop.GetCustomAttributes(typeof(DefaultValueAttribute), true) if (defaultValueAttribute != null) { DefaultValueAttribute dva = defaultValueAttribute[0] as DefaultValueAttribute if(dva != null) prop.SetValue(o, dva.Value, null) }

    标签: AutomaticPropertiesDefaultValues PropertyInfo Article_src GetPropert

    上传时间: 2014-11-21

    上传用户:xaijhqx

  • (***FlatStyle v4.42.8.0 for DELPHI7 by comerose update***)2007.04.30 更新说明1.修正 TFlatListView 标题的平面显示(

    (***FlatStyle v4.42.8.0 for DELPHI7 by comerose update***)2007.04.30 更新说明1.修正 TFlatListView 标题的平面显示(更加完美).2.增加 TFlatListView 的属性. ①ColorTitleFace以实现对标题平面颜色控制. ②ColorTitleCheck选择时的CheckBox的颜色控制. ③AllCheck对列表进行全选(只在CheckBoxs为true时有效). AllCheck=true时全选列表,AllCheck=False取消全选. ④GroundPic背景图像来源. ⑤GroundHas是否使用画背景图像(在OnDrawBackground事件中无效). ⑥GroundStretch是否放缩背景图像(在OnDrawBackground事件中无效). ⑦OnDrawBackground自定义重画事件(在GroundHas=false时,事件中有效). ⑧在标题中增加一个列表全选按钮(CheckBoxs=true和ViewStyle=vsReport时有效). 如果你之前的程序在OnCustomDraw中有代码的, 请把这些代码复制到OnDrawBackground事件中.3.修正 TFlatListBoxExt 和 TFlatCheckListExt 鼠标进入时的变色. (原来版本当列表数目显示区域少于控件区域时,会有部分地方不变色的BUG).4.优化一些代码。5.编译说明 ①首先打开 FlatVcls.dpk 包, 编译. ②再次打开 FlatStyle.dpk 包, 编译. ③成功!6.更详细的说明,请阅读内部的README.TXT文件.

    标签: TFlatListView FlatStyle comerose DELPHI7

    上传时间: 2013-12-31

    上传用户:hongmo

  • 最新发送短信的jar包 COutgoingMessage msg = new COutgoingMessage(mobile , message) msg.setMessageEncoding(

    最新发送短信的jar包 COutgoingMessage msg = new COutgoingMessage(mobile , message) msg.setMessageEncoding(CMessage.MessageEncoding.EncUcs2) msg.setStatusReport(true) srv.sendMessage(msg)

    标签: COutgoingMessage setMessageEncoding msg message

    上传时间: 2016-07-29

    上传用户:大三三

  • wince EVC 简单的图片浏览功能,自已随意扩展 支持 *.bmp *.jpg *.gif *.png 等等 // TODO: Add your control notification

    wince EVC 简单的图片浏览功能,自已随意扩展 支持 *.bmp *.jpg *.gif *.png 等等 // TODO: Add your control notification handler code here CString defFilter("选中其中一个文件|*.bmp *.jpg *.gif *.png") CFileDialog dlg(true,NULL,NULL,OFN_ALLOWMULTISELECT,defFilter) if(dlg.DoModal()==IDOK){ PathName=dlg.GetPathName() }

    标签: notification control wince TODO

    上传时间: 2016-09-22

    上传用户:gut1234567

  • LCD Driver datasheet The SPF54126A, a 262144-color System-on-Chip (SoC) driver LSI designed for sma

    LCD Driver datasheet The SPF54126A, a 262144-color System-on-Chip (SoC) driver LSI designed for small and medium sizes of TFT LCD display, is capable of supporting up to 176xRGBx220 in resolution which can be achieved by the designated RAM for graphic data. The 528-channel source driver has true 6-bit resolution, which generates 64 Gamma-corrected values by an internal D/A converter. The source driver of SPFD54126A adopts OP-AMP structure to enhance display quality and it cooperates with advanced circuitry techniques to reduce power consumption.

    标签: System-on-Chip datasheet designed Driver

    上传时间: 2016-09-22

    上传用户:xauthu

  • The Inter IC bus or I2C bus is a simple bidirectional two wire bus designed primarily for general co

    The Inter IC bus or I2C bus is a simple bidirectional two wire bus designed primarily for general control and data transfer communication between ICs. Some of the features of the I2C bus are: • Two signal lines, a serial data line (SDA) and a serial clock line (SCL), and ground are required. A 12V supply line (500mA max.) for powering the peripherals often may be present. • Each device connected to the bus is software addressable by a unique address and simple master/ slave relationships exist at all times masters can operate as master-transmitters or as master-receivers. • The I2C bus is a true multi-master bus including collision detection and arbitration to prevent data corruption if two or more masters simultaneously initiate data transfer systems. • Serial, 8-bit oriented, bidirectional data transfers can be made at up to 100 KBit/s in the standard mode or up to 400 KBit/s in the fast mode.

    标签: bus bidirectional primarily designed

    上传时间: 2013-12-10

    上传用户:jeffery

  • 在作业1的Employee和EmployeeDemo两个类基础上修改 1

    在作业1的Employee和EmployeeDemo两个类基础上修改 1,重写Employee类的toString方法,返回Employee类的相关信息的字符串形式 重写Employee类的equals方法,如果两个Employee实例的名字和所属部门相同,返回true; 并在EmployeeDemo类里面验证上述两个方法 2,定义Clerk、Salesman、Engineer三个类,分别继承自Employee 为Salesman增加一个年销售额属性 为Engineer增加一个年消化人月数属性 3,将下面的描述反映到程序里 普通员工年终奖金分配方案为月薪×2 Salesman:销售额×2%+月薪×1.8 Engineer:年消化人月数×300+月薪×2.5 Clerk:月薪×2.5

    标签: EmployeeDemo Employee 修改

    上传时间: 2016-10-21

    上传用户:jeffery

  • 下面的函数LoadBmpFile

    下面的函数LoadBmpFile,其功能是从一个.bmp文件中读取数据(包括BITMAPINFOHEADER,调色板和实际图象数据),将其存储在一个全局内存句柄hImgData中,这个hImgData将在以后的图象处理程序中用到。同时填写一个类型为HBITMAP的全局变量hBitmap和一个类型为HPALETTE的全局变量hPalette。这两个变量将在处理WM_PAINT消息时用到,用来显示位图。该函数的两个参数分别是用来显示位图的窗口句柄,和.bmp文件名(全路径)。当函数成功时,返回true,否则返回FALSE。

    标签: LoadBmpFile 函数

    上传时间: 2016-10-25

    上传用户:z754970244

  • All people curious about how Linux works and why it is so efficient will find answers here. After re

    All people curious about how Linux works and why it is so efficient will find answers here. After reading the book, you will find your way through the many thousands of lines of code, distinguishing between crucial data structures and secondary ones—in short, becoming a true Linux hacker.

    标签: efficient curious answers people

    上传时间: 2013-12-28

    上传用户:lifangyuan12