#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