Hello,
I got a class that i defined
class ProbabilityEngine
{
public:
static int index_x;
static int index_y;
static LaplaceStatistics *Laplace_array;
static GaussStatistics *Gauss_array;
void CreateFeat();
void CreateXis();
};
I then define the functions in the .cpp and initialise the static
menbers variables and functions.
But when I try to do the following :
ProbabilityEngine my_engine;
my_engine.CreateFeat();
I get the error : D:\Bayesian Programming\Form\FormDlg.cpp(50) : error
C2143: syntax error : missing ';' before '.'
D:\Bayesian Programming\Form\FormDlg.cpp(50) : error C2501:
'Prob_engine' : missing storage-class or type specifiers
D:\Bayesian Programming\Form\FormDlg.cpp(50) : error C2371:
'Prob_engine' : redefinition; different basic types
D:\Bayesian Programming\Form\FormDlg.cpp(40) : see declaration
of 'Prob_engine'
and really i'm lost...could there be a problem with static members or
something else?