📄 prob.h
字号:
/*
SGPC: Simple Genetic Programming in C
(c) 1993 by Walter Alden Tackett and Aviram Carmi
This code and documentation is copyrighted and is not in the public domain.
All rights reserved.
- This notice may not be removed or altered.
- You may not try to make money by distributing the package or by using the
process that the code creates.
- You may not distribute modified versions without clearly documenting your
changes and notifying the principal author.
- The origin of this software must not be misrepresented, either by
explicit claim or by omission. Since few users ever read sources,
credits must appear in the documentation.
- Altered versions must be plainly marked as such, and must not be
misrepresented as being the original software. Since few users ever read
sources, credits must appear in the documentation.
- The authors are not responsible for the consequences of use of this
software, no matter how awful, even if they arise from flaws in it.
If you make changes to the code, or have suggestions for changes,
let us know! (gpc@ipld01.hac.com)
*/
#ifndef _PROB_H_
#define _PROB_H_
#ifndef lint
static char prob_h_rcsid[]="$Id: prob.h,v 1.4 1993/04/30 05:11:22 gpc-avc Exp gpc-avc $";
#endif
#if __STDC__ || defined(__cplusplus)
#define P_(s) s
#else
#define P_(s) ()
#endif
#if GENERIC==float
#define FORMAT "%f"
#define CKPT_FORMAT "%22.20f"
#elif GENERIC==int
#define FORMAT "%d"
#define CKPT_FORMAT "%d"
#else
#define FORMAT "ERORR_IN_FORMAT"
#define CKPT_FORMAT "ERORR_IN_FORMAT"
#endif
GENERIC plus P_((
GENERIC *args
));
GENERIC minus P_((
GENERIC *args
));
GENERIC xtimes P_((
GENERIC *args
));
GENERIC pdiv P_((
GENERIC *args
));
GENERIC iflte P_((
tree **args
));
GENERIC atg P_((
GENERIC *args
));
GENERIC random_constant P_((void));
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -