-
51贪吃蛇程序
应用背景(2)蛇的运动
此程序的关键就在于蛇的移动。游戏在进入界面后,在没有执行任何操作的情况下,蛇沿着原来的方向以某一速度前行。若蛇在水平方向上前行,操作者按向左或向右的键,此时该指令判为无效,蛇继续沿着原来水平的方向前行。同样的道理,若蛇在竖直的方向上前行,操作者按向上或向下的键,此时该指令也判为无效,蛇继续沿着原来竖直的方向前行。关键技术图形的驱动,首先是由detectgraph通过检测硬件确定图形驱动程序和模式,然后把自动测试硬件的结果赋给图形驱动器。不同的显示器适配器有不同的图形分辨率。即是同一显示器适配器, 在不同模式下也有不同分辨率。因此, 在屏幕作图之前, 必须根据显示器适配器种类将显示器设置成为某种图形模式, 在未设置图形模式之前,微机系统默认屏幕为文本模式(80列, 25行字符模式), 此时所有图形函数均不能工作。再由initgraph()函数,根据测试结果初始化图形。
- 2023-02-02 18:30:04下载
- 积分:1
-
% [nearest_neighbours] = find_nearest_neighbours( database, desc, max_dist )
%...
% [nearest_neighbours] = find_nearest_neighbours( database, desc, max_dist )
% Find the indices of the nearest neighbours of the given desriptors in the近邻点寻找算法,在非线性时间序列中很有用,是常用的算法- [Nearest_neighbours] = find_nearest_neighbours (database, desc, max_dist) Find the indices of the nearest neighbours of the given desriptors in the neighbor-point search algorithm, the nonlinear time series of very useful, is a commonly used algorithm
- 2022-05-24 09:30:26下载
- 积分:1
-
基于labview的温度采集监控系统
应用背景虚拟仪器(VI)是计算机技术和传统的仪器技术相结合的产物,是仪器发展的一个重要方向。LabVIEW是一个基于图形化编程语言的虚拟仪器软件开发工具。本文阐述了系统开发过程中数据的采集和软硬件的设计,虚拟仪器设备可以由使用者自己定义,这意味着可以自由地组合计算机平台,硬件(包括传统仪器),软件,以及各种实现应用所需要的附件。关键技术运用了labview软件,循环算法等,完成了模拟温度采集监控系统的实现。LabVIEW是一个基于图形化编程语言的虚拟仪器软件工具。本文介绍的是虚拟仪器的界面,LabVIEW应用,并且设计了一个基于labview的温度采集监控系统,阐述了系统开发过程中数据的采集和软硬件的设计。
- 2022-04-18 06:47:38下载
- 积分:1
-
快速排序的时间测量
"""
- 2023-08-31 01:10:03下载
- 积分:1
-
模糊洗衣机系统,通过对衣服干净程度的判断来控制水温,洗衣时间长短以及洗衣粉用量。...
模糊洗衣机系统,通过对衣服干净程度的判断来控制水温,洗衣时间长短以及洗衣粉用量。-Fuzzy washing system, through the clean clothes to determine the extent to control water temperature, the length of time as well as laundry detergent dosage.
- 2022-05-27 17:48:43下载
- 积分:1
-
多目标决策;多属性决策
多目标决策;多属性决策多目标决策;多属性决策;Multi-objective decision; multiple attribute decision making
- 2022-10-10 18:40:02下载
- 积分:1
-
error detection and correction
this code is downed from website and can detect the data`s error and correct it .it can detect 2 bit error and correct 1bit error for 512bytes or 256 words data.
- 2022-02-20 02:06:51下载
- 积分:1
-
energy center, two pairs of split
用能量重心法,对基2分裂的FFT算法进行校正,在整周期采样的条件下,幅值,相位,频率等可以达到很高的精度
-energy center, two pairs of split-the FFT algorithm for correction, in the whole cycle of sampling conditions, the amplitude, phase, frequency, etc., may achieve high accuracy
- 2022-04-20 19:20:20下载
- 积分:1
-
对混沌神经网络进行预测,效果非常好,精度比较高
对混沌神经网络进行预测,效果非常好,精度比较高-forecasting of chaos
- 2022-03-04 19:39:44下载
- 积分:1
-
blowfish 加密算法
blowfish 加密算法 二进制兼容的加密算法,加密匙可到128位-blowfish binary compatible encryption algorithm encryption algorithms, encryption keys can be 128
- 2022-02-10 13:07:59下载
- 积分:1