I can't identify the problem can somebody help me?
objects.h (abstract base)
#ifndef objects_h
#define objects_h
#include "colorScreen.h"
#include "maincontrol.h"
#include <ctime> #include <string>
using namespace std;
class objects
{
public:
virtual ~objects();
virtual void print(const MainControl &inMain)const =0;
protected:
objects();
objects(const int& inX, const int& inY,const int&inScore);
...
13.(missing type specifier - int assumed. )
food.h (derived)
#ifndef food_h
#define food_h
#include <iostream>
#include "objects.h"
using namespace std;
class food: public objects
{
public:
food(const int&inX, const int&inY, const int&inScore);
virtual ~food();
virtual void print(const MainControl &inMain)const;
...
9. ('objects' : base class undefined)
14. (missing type specifier - int assumed. )
maincontrol.h
#ifndef maincontrol_h
#define maincontrol_h
#include <iostream> #include <fstream> #include <string> #include <vector>
#include "food.h"
#include "colorScreen.h"
using namespace std;
class objects;
class MainControl
{
public:
MainControl(...);
void print(const MainControl &in) const;
friend objects;
...
I frd MainControl with objects here
can anyone identify the problem? Thanks!