Answer the question
In order to leave comments, you need to log in
How to include header without error?
There are 4 files
#pragma once
class Neuron;
class Layer
{
private:
Neuron *neurons;
int size;
public:
Layer();
~Layer();
};
#pragma once
class Layer;
class Neuron
{
private:
float *weight;
public:
Neuron();
~Neuron();
float execute(const Layer &layer);
};
#include "layer.hpp"
Layer::Layer(){}
Layer::~Layer(){}
#include "neuron.hpp"
Neuron::Neuron() {}
Neuron::~Neuron(){}
float Neuron::execute(const Layer &layer)
{
return 0.0;
}
#include "neuron.hpp"
#include "layer.hpp"
int main(int argc, char const *argv[])
{
Neuron n;
Layer l;
return 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question