C++ 库函数查询 CHM 格式 #, ## manipulate strings #define define variables #error display an error message #if, #ifdef, #ifndef, #else, #elif, #endif conditional operators #include insert the contents of another file #line set line and file information #pra
c语言库函数大全--资料收集 Turbo C 2.0 函数中文说明大全 分类函数,所在函数库为ctype.h int isalpha(int ch) 若ch是字母('A'-'Z','a'-'z')返回非0值,否则返回0 int isalnum(int ch) 若ch是字母('A'-'Z','a'-'z')或数字('0'-'9'),返回非0值,否则返回0 int isascii(int ch) 若ch是字符(ASCII码中的0-127)返回非0值,否则返回0 int iscntrl(int ch
模拟退火算法求解TSP问题 #include #include #include #include #include using namespace ::std; const int MAX_CITY_SIZE = 100;//最大城市个数 int n; //城市个数 int dist[MAX_CITY_SIZE][MAX_CITY_SIZE];//距离矩阵 int cur_path[MAX_CITY_SIZE];//当前解 int exd_path[MAX_CITY_SIZE];/
时间函数举例程序分析 2.程序源代码: #include "stdio.h" #include "time.h" void main() { time_t lt; /*define a longint time varible*/ lt=time(NULL);/*system time and date*/ printf(ctime(<)); /*english format output*/ printf(asctime(localtime(<)));/* tranfer to
this is a TC defin#define N 200 #include #include #include #define LEFT 0x4b00 #define RIGHT 0x4d00 #define DOWN 0x5000 #define UP 0x4800 #define ESC 0x011b int i,key; int score=0;/*得分*/ int gamespeed=50000;/*游戏速 度自己调整*/ struct Food { int x;/*食物的
遗传算法挑出复合TSP问题的遍历子代。 for i=1:INIT for j=(i+1):INIT if crossoverrate(i,j)<XRATE X1=gen(i,:); X2=gen(j,:); cross=ceil(7*rand(1)); X1=[X1(1:cross),X2(cross+1:8)]; X2=[X2(1:cross),X1(cross+1:8)]; gen(i,:)=X1; gen(j,:)=X2; end end ...展开收缩
Table of Contents 1. About Perl Training Australia....................................................................................................... 1 Training.....................................................................................