Header file compilation error

The compiler used for this code is ancient ,I am using turbo c++ 3.0(school requirements can't be helped) to run the code but there are some compiler errors
the errors displayed:
line 4:Declaration syntax error
line 9:Declaration syntax error
the header file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef emoji_h
#define emoji_h

class emoji;

#include<graphics.h>
#include<math.h>

class emoji
{
	const x,y,rds;
	emoji():x(300),y(175),rds(60){}
	void clcwscle(int,int,int,double st,double ed,int);
	void bdrcn1();
	void bdrcn2();
	void bdrcn3();//death flag
	void bdrcn4();
	void bdrcn5();
	void bdrcn6();
	void bdrcn7();
	void bdrcn8();
	void bdrcn9();//death flag
	void bdrcn10();//death flag
	//to refresh the emoji
	void bdrcn1rf();
	void bdrcn2rf();
	void bdrcn3rf();
	void bdrcn4rf();
	void bdrcn5rf();
	void bdrcn6rf();
	void bdrcn7rf();
	void bdrcn8rf();
	void bdrcn9rf();
	void bdrcn10rf();
	public:
	void accemoji(int);
	void rfemoji(int);
};
#endif 

and its functions are defined in a cpp file//in case you wanted to know, its //not made efficient yet
it starts of like this
#include"emoji.h"
//only the functions are defined couldn't post as it was too long. No syntax //errors are present here
I don't know how to fix it
Have you tried to delete the delaration in line 4
yes
1. This header does not use functions or custom types. Therefore, no reason to include math.h or graphics.h

2. No apparent reason for forward declaration on line 4.

3. Line 11 does not tell the type of x, y, or rds.

4. No public constructor. Is that intentional?
yes the private constructor was intentional why?
Our textbook says that stand alone const is const int type atleast that's what tc++ 3.0 compiler does in other situations
as for the forward declaration i was experimenting
i thought i could use the header files in the header file so that i don't have to declare it later in the cpp file
Topic archived. No new replies allowed.