?? f2.c
字號:
/************************************************ file f2.c ****/
double eval(str, length, vect, genes)
char str[]; /* string representation */
int length; /* length of bit string */
double vect[]; /* floating point representation */
int genes; /* number of elements in vect */
{
double ans;
ans = (vect[0]*vect[0] - vect[1]);
ans *= ans;
ans = 100.0*ans + (1.0 - vect[0])*(1.0 - vect[0]);
return (ans);
}
/** end of file **/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -