I am basically trying to create a local (and private) instance of a class deltaKinematicsin a classgeneticAlgorithm
In the file geneticAlgorithm.hI have:
class DeltaKinematics;
class GeneticAlgorithm {
DeltaKinematics deltaRobot;
public:
GeneticAlgorithm();
};
This is all fine, but when I go to declare a constructor geneticAlgorithm, I cannot figure out how to build an instancedeltaKinematics
This is the constructor geneticAlgorithm.cpp:
GeneticAlgorithm::GeneticAlgorithm(){
DeltaKinematics deltaRobot(100);
cout << "Genetic Algorithmic search class initiated \n";
}
How do I start initializing this local instance?
source
share