hi every one im working with some exersies which include inheretence
every thing is fine except that the compiler dose not recognize the base clase
it says Error Cannot open include file: 'pointType.h': No such file or directory
here is part of the code

# include "pointType.h"
# ifndef circle_H
# define circle_H


class circle : public pointType
{
public:
	//constructor
	circle(double r=0.0,int x=0,int y=0);
	void setRadius(double);
	double getRadius()const;
	double area()const;
	double circumference()const;
	void printR();

protected:
	double radius;
}
#endif

can any one help me!

Recommended Answers

All 3 Replies

Is the file in the same directory as the .h you are editing?

this was the problem thanks alot.

This has got to do with your header location in the physical directory. Check that it is in the same directory as your CPP file. Otherwise, you may specify the relative path of the file in your include statement.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.