HiddenLayer::Hi ddenLayer(int numHidden, int numInput, float thresh, bool init)
{
hiddenNodes = new HiddenNeuron[numHidden](numInput, thresh, init);
numNeurons = numHidden;
};
Error:
ISO C++ forbids initialization in array new
how do i write this so i wont get an error?
id love to see your answer as a source code/
thanks in advance
{
hiddenNodes = new HiddenNeuron[numHidden](numInput, thresh, init);
numNeurons = numHidden;
};
Error:
ISO C++ forbids initialization in array new
how do i write this so i wont get an error?
id love to see your answer as a source code/
thanks in advance
Comment