I am getting the error "string does not name a type" despite having the "using namespace std;" in the program.
#ifndef SHAPE_H
#define SHAPE_H
using namespace std;
class Shape
{
public:
Shape();
virtual ~Shape();
string getShapeName();
void setShapeName(string shapeName);
virtual float calculateArea() = 0; //Calculates area of the shape
protected:
const float PI = 3.14159265;
private:
string m_ShapeName;
};
#endif // SHAPE_H_INCLUDED