a simple GP based C++
3291 ワード
ソースアドレスhttps://github.com/pbharrin/Genetic-Progに質問
に変更
に質問
に変更
関数の再ロードと継承
GOftn* children[];
1>g:\c++_gp\genetic-prog-master\genetic-prog-master\basicfunctions.h(30): warning C4200: nonstandard extension used : zero-sized array in struct/union
1> Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
に変更
GOftn* children[1];
に質問
GOftn* retFtn;
1>g:\c++_gp\genetic-prog-master\genetic-prog-master\treegeneops.cpp(101): error C4703: potentially uninitialized local pointer variable 'retFtn' used
に変更
GOftn* retFtn=0;
関数の再ロードと継承
//main.c 39 line,
err = outputs[j] - (initTrees[i]->eval(inputs[j]));