I actually have two errors and i hope i can get an explination of why this doesn't work and how i can make them work.
The error
[attachment=29642:error.PNG]
And my code
PP.h
#ifndef PP_H
#define PP_H
#include "person.h"
#include "nameRandomizer.h"
#include <string>
class PP
{
private:
person cPerson;
nameRand nameRandz;
public:
PP(person& person):cPerson(person) nameRandz()
{};
};
#endif // PP_H
nameRandomizer.h
#ifndef NAMERANDOMIZER_H
#define NAMERANDOMIZER_H
#include "PP.h"
class nameRand
{
public:
nameRand(){runRand();}
void runRand();
};
#endif // NAMERANDOMIZER_H
nameRandomizer.cpp
#include "nameRandomizer.h"
void nameRand::runRand()
{
person.setName("qwer");
}