Here's the errors:
Compiling...
knowledge.cpp
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2146: syntax error : missing ';' before identifier 'myKnowledge'
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'Knowledge' : missing storage-class or type specifiers
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'myKnowledge' : missing storage-class or type specifiers
person.cpp
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2146: syntax error : missing ';' before identifier 'myKnowledge'
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'Knowledge' : missing storage-class or type specifiers
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'myKnowledge' : missing storage-class or type specifiers
-------------------------------------------------
knowledge.h
#include <fstream.h>
#include "include\apstring.h"
#include "nodetypes.h"
#include "include\apvector.h"
class Knowledge
{
...
};
-------------------------------------------------
person.h
#include "knowledge.h"
#include "include\apstring.h"
#include "utils.h"
#include <fstream.h>
class Person
{
public:
Person();
Person(apstring &);
Person(const apstring & , int);
~Person();
apstring Ask(apstring question);
void Say(const apstring &);
bool isUser();
private:
bool amUser;
void LoadMemory();
const char* file;
apstring myName;
Knowledge myKnowledge; //line 32
};
Compiling...
knowledge.cpp
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2146: syntax error : missing ';' before identifier 'myKnowledge'
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'Knowledge' : missing storage-class or type specifiers
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'myKnowledge' : missing storage-class or type specifiers
person.cpp
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2146: syntax error : missing ';' before identifier 'myKnowledge'
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'Knowledge' : missing storage-class or type specifiers
c:\my documents\comp sci ap\ai\vc++\ai\person.h(32) : error C2501: 'myKnowledge' : missing storage-class or type specifiers
-------------------------------------------------
knowledge.h
#include <fstream.h>
#include "include\apstring.h"
#include "nodetypes.h"
#include "include\apvector.h"
class Knowledge
{
...
};
-------------------------------------------------
person.h
#include "knowledge.h"
#include "include\apstring.h"
#include "utils.h"
#include <fstream.h>
class Person
{
public:
Person();
Person(apstring &);
Person(const apstring & , int);
~Person();
apstring Ask(apstring question);
void Say(const apstring &);
bool isUser();
private:
bool amUser;
void LoadMemory();
const char* file;
apstring myName;
Knowledge myKnowledge; //line 32
};