/*
* File: Stats.h
* Author: holland
*
* Created on August 23, 2011, 5:13 PM
*/
#include "Character.h"
#ifndef STATS_H
#define STATS_H
class Stats : public ClassOwner
{//this is where the error reads off to. What am I doing wrong?
public:
Stats(int id, Character owner) : ClassOwner(int )
{}
Stats(const Stats& orig);
virtual ~Stats();
private:
};
[code]#include <iostream>
/*
* File: Character.h
* Author: holland
*
* Created on August 22, 2011, 7:09 PM
*/
#ifndef CHARACTER_H
#define CHARACTER_H
enum Gender { MALE, FEMALE };
enum Race { DARK_ELF, HUMAN };
class Character
{
public:
Character(std::string name, Gender gen, Race race);
~Character();
protected:
};
#endif /* CHARACTER_H */
Have no idea what line number or file it is complaining about, so I have to guess.
I'd guess Stats.h line 12 since ClassOwner is not declared, though there is also a syntax error on line 15, and std::string is not declared before used in Character.h on line 42.