C++ Does not name to a type
This might be an easy question, but I cannot figure out why the compiler it's giving me this error. I have two classes. Agent and Environment. WHen I try to add an object of type Agent in my Environment class I get Agent does not name to a type error. I am including Agent.h in my Environment.h class #ifndef AGENT_H_INCLUDED #define AGENT_H_INCLUDED #include <vector> #include <iostream> #include "Environment.h" using namespace std; class Agent{ public: Agent(bool s); vector<int> getPercept(); void setPercept(vector<int> p); void goForward(); void turnRight(); void turnLeft(); void clean(); void