codes are these:
(Umar.h)
//---------------
#ifndef UmarH
#define UmarH
#include <ExtCtrls.hpp>
#include "Umar1.h"
//---------------
class Cmar
{protected:
int x;
int y;
long int cf;
public:
Cmar (int px,int py,long int pcf);
~Cmar();
virtual void move1(TPaintBox *P);
virtual void move2(TPaintBox *P);
virtual void move3(TPaintBox *P);
};
#endif
(Umar1.h)
//----------------
#ifndef Umar1H
#define Umar1H
#include <ExtCtrls.hpp>
#include "Umar.h"
//----------------
class Cmar1: public Cmar
{private:
long int col1;
int r1;
int r2;
int turn;
public:
Cmar1(int px,int py,long int pcf);
~Cmar1();
void changecol();
void changeturn();
void show1(TPaintBox *P);
void hide1(TPaintBox *P);
void move1(TPaintBox *P);
void move2(TPaintBox *P);
};
#endif
But when I try to run it, an error appears saying [C++ Error] Umar1.h(10): E2303 Type name expected.
(Umar.h)
//---------------
#ifndef UmarH
#define UmarH
#include <ExtCtrls.hpp>
#include "Umar1.h"
//---------------
class Cmar
{protected:
int x;
int y;
long int cf;
public:
Cmar (int px,int py,long int pcf);
~Cmar();
virtual void move1(TPaintBox *P);
virtual void move2(TPaintBox *P);
virtual void move3(TPaintBox *P);
};
#endif
(Umar1.h)
//----------------
#ifndef Umar1H
#define Umar1H
#include <ExtCtrls.hpp>
#include "Umar.h"
//----------------
class Cmar1: public Cmar
{private:
long int col1;
int r1;
int r2;
int turn;
public:
Cmar1(int px,int py,long int pcf);
~Cmar1();
void changecol();
void changeturn();
void show1(TPaintBox *P);
void hide1(TPaintBox *P);
void move1(TPaintBox *P);
void move2(TPaintBox *P);
};
#endif
But when I try to run it, an error appears saying [C++ Error] Umar1.h(10): E2303 Type name expected.