#if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen { public: CGAQueen(int nPopulation,int nIteration,float Mutation,int mChBoard) virtual ~CGAQueen() void Clear() // to clear chess board with 0 value void InitialPopulation() // to create the first and initial randompopulation void FillArea(int index) // to fill chess board with desired chromosome int CostFunc(int index) // determine the cost of matrix[index][index] void PopulationSort() // to sort population from the best to the worst void GenerateCrossOverMatrix() // a way to create children from parent is CcrossOver void Mating() // to create children from parents void Ap
资源简介:#if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_) #define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CGAQueen { pu...
上传时间: 2015-12-27
上传用户:wuyuying
资源简介:/* ********************************************************************************************************* * uC/TCP-IP V2 * ...
上传时间: 2015-11-22
上传用户:the same kong
资源简介:Predefined Style options define the style by setting several other options. If other options are also used, the placement of the predefined style option in the command line is important. If the predefined style option is placed first, the o...
上传时间: 2014-12-21
上传用户:zhangliming420
资源简介:C++完美演绎 经典算法 如 /* 头文件:my_Include.h */ #include <stdio.h> /* 展开C语言的内建函数指令 */ #define PI 3.1415926 /* 宏常量,在稍后章节再详解 */ #define circle(radius) (PI*radius*radius) /* 宏函数,圆的面积 */ /* 将比较数值大小的...
上传时间: 2014-01-17
上传用户:epson850
资源简介:#include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h> #include <malloc.h> FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////...
上传时间: 2015-07-16
上传用户:ynsnjs
资源简介:his project was built and tested with WinAVR-20060125. Make sure the MCU target define in the Makefiles corresponds to the AVR you are using!! To build the code, just install WinAVR and run "make" from the console in echomaster and ...
上传时间: 2014-10-10
上传用户:yan2267246
资源简介:% COMPDIR Computes a search direction in a subspace defined by Z. % Helper function for NLCONST. % Returns Newton direction if possible. % Returns random direction if gradient is small. % Otherwise, returns steepest descent direct...
上传时间: 2014-01-24
上传用户:Thuan
资源简介:Refer to the UML diagram above and implement the Course class. After you define the Course class, you must create a Course object with the following details: Programming I, WXES1114, taught by SMT. Besides, your program must test all ...
上传时间: 2014-01-26
上传用户:cx111111
资源简介:% Train a two layer neural network with the Levenberg-Marquardt % method. % % If desired, it is possible to use regularization by % weight decay. Also pruned (ie. not fully connected) networks can % be trained. % % Given a se...
上传时间: 2016-12-27
上传用户:jcljkh
资源简介:1. This BSP can support 2443EVT0 board. If you want to use EVT0 BSP, set followings. In smdk2443\smdk2443.bat file set BSP_EVT1=1 -> set BSP_EVT1= In smdk2443\src\inc\bsp_cfg.h file #define EVT1 -> #def...
上传时间: 2014-01-27
上传用户:fnhhs
资源简介:TLC2543是TI公司的12位串行模数转换器,使用开关电容逐次逼近技术完成A/D转换过程。由于是串行输入结构,能够节省51系列单片机I/O资源;且价格适中,分辨率较高,因此在仪器仪表中有较为广泛的应用。 TLC2543的特点 (1)12位分辩率A/D转换器; (2)在...
上传时间: 2013-11-19
上传用户:shen1230
资源简介:假定从8位AD中读取数据(如果是更高位的AD可定义数据类型为int),子程序为get_ad(); 1、限幅滤波法(又称程序判断滤波法) A、方法: 根据经验判断,确定两次采样允许的最大偏差值(设为A) 每次检测到新值时判断:...
上传时间: 2014-12-26
上传用户:nanshan
资源简介:AT89C2051驱动步进电机的电路和源码:AT89C2051驱动步进电机的电路和源码 程序:stepper.c stepper.hex/* * STEPPER.C * sweeping stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */#i nclude c:\mc5151io.h /* include i/o heade...
上传时间: 2013-11-21
上传用户:boyaboy
资源简介:All inputs of the C16x family have Schmitt-Trigger input characteristics. These Schmitt-Triggers are intended to always provide proper internal low and high levels, even if anundefined voltage level (between TTL-VIL and TTL-VIH) is external...
上传时间: 2013-10-23
上传用户:copu
资源简介:All inputs of the C16x family have Schmitt-Trigger input characteristics. These Schmitt-Triggers are intended to always provide proper internal low and high levels, even if anundefined voltage level (between TTL-VIL and TTL-VIH) is external...
上传时间: 2014-04-02
上传用户:han_zh
资源简介:有两种方式可以让设备和应用程序之间联系:1. 通过为设备创建的一个符号链;2. 通过输出到一个接口WDM驱动程序建议使用输出到一个接口而不推荐使用创建符号链的方法。这个接口保证PDO的安全,也保证安全地创建一个惟一的、独立于语言的访问设备的方法。一个...
上传时间: 2013-10-17
上传用户:gai928943
资源简介:串行编程器源程序(Keil C语言)//FID=01:AT89C2051系列编程器//实现编程的读,写,擦等细节//AT89C2051的特殊处:给XTAL一个脉冲,地址计数加1;P1的引脚排列与AT89C51相反,需要用函数转换#include <e51pro.h> #define C2051_P3_7 P1_0#define C2051_P1 P0//...
上传时间: 2013-11-12
上传用户:gut1234567
资源简介:微型打印机的C语言源程序:微型打印机的C51源程序#define uchar unsigned char#define uint unsigned int#include <reg52.h>#include <stdio.h>#include <absacc.h>#include <math.h>#include <string.h>#include <ctype.h>#include <stdlib.h>#define PIN XB...
上传时间: 2013-10-18
上传用户:hasan2015
资源简介:16 16点阵显示汉字原理及显示程序 #include "config.h" #define DOTLED_LINE_PORT PORTB #define DOTLED_LINE_DDR DDRB #define ...
上传时间: 2013-11-18
上传用户:mnacyf
资源简介:1 /**————————————————————2 〖说明〗I2C总线驱动程序(用两个普通IO模拟I2C总线)3 包括100Khz(T=10us)的标准模式(慢速模式)选择,4 和400Khz(T=2.5us)的快速模式选择,5 默认11.0592Mhz的晶振。6 〖文件〗PCF8563T.C ﹫2001/11/2 77 〖作...
上传时间: 2014-04-11
上传用户:xg262122
资源简介:10种软件滤波方法的示例程序 假定从8位AD中读取数据(如果是更高位的AD可定义数据类型为int),子程序为get_ad(); 1、限副滤波 /* A值可根据实际情况调整 value为有效值,new_value为当前采样值 滤波程序返回有效的实际值 */ #defin...
上传时间: 2013-11-11
上传用户:gxf2016
资源简介:MMI spec Key sequence define
上传时间: 2013-12-15
上传用户:lacsx
资源简介:a Java program that reads a file containing instructions written in self-defined file (TPL in this case), and executes those instructions. This program should take the name of the TPL file as a command line parameter, and write its output t...
上传时间: 2015-01-11
上传用户:曹云鹏
资源简介:This code will be useful to you if you have tried using ADOCE, but never got anything to work. It is not meant to be integrated into any application, but rather it should be used for demonstrative purposes. It clearly shows the basics of ho...
上传时间: 2014-01-13
上传用户:bcjtao
资源简介:Library of C functions that allows a program to use WinSock 2 functionality if it is available or fall back to WinSock 1.1 if it isn t.
上传时间: 2015-01-18
上传用户:LIKE
资源简介:header define of EZ-LIB
上传时间: 2015-02-09
上传用户:manlian
资源简介:不知道啊!25 result love(boy, girl) {- if ( boy.有房() and boy .有车() ) {- boy.set(nothing) return girl.嫁给(boy)
上传时间: 2014-06-27
上传用户:aix008
资源简介:if (pfile() == 0) unlink(inname) else fprintf(stderr, "%s: I/O Error -- File unchanged\n", inname) fclose(outfile) fclose(infile) } exit(0)
上传时间: 2015-03-12
上传用户:l254587896
资源简介:4. If a modified source code is distributed, the original unmodified -- source code must also be INCLUDED (or a link to the Free IP web -- site). In the modified source code there must be clear -- identification of the modified version.
上传时间: 2013-12-14
上传用户:qq1604324866
资源简介:先序遍历非递归算法 #define maxsize 100 typedef struct { Bitree Elem[maxsize] int top }SqStack void PreOrderUnrec(Bitree t) { SqStack s StackInit(s) p=t while (p!=null !StackEmpty(s
上传时间: 2014-01-26
上传用户:hewenzhi