Circle.h is not working!

SO this is not working. says that the #include"circle.h" can not be found!!
please help me.






#include <circle.h>

Circle::Circle()
{
this->radius = 0;
}

const float Circle::calcCircumference()
{
return 2 * pi * radius;
}

const float Circle::calcArea()
{
return pi * getRadius() * getRadius();
}

void Circle::setRadius(float radius)
{
this->radius = radius;
}

const float Circle::getRadius()
{
return radius;
}

const void Circle::showData()
{
std::cout << "Radius of circle is " << getRadius() << std::endl;
std::cout << "Circumference of circle is " << calcCircumference() << std::endl;
std::cout << "Area of circle is " << calcArea() << std::endl;
}
Is there a file named "circle.h" ?
Where is your (presumably "circle.cpp") file located?
Where is your "circle.h" file located?

Try changing to #include "circle.h"

Documentation for GCC:
https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

Documentation for Visual Studio:
https://docs.microsoft.com/en-us/cpp/preprocessor/hash-include-directive-c-cpp
Last edited on
Topic archived. No new replies allowed.