显示错误 1>e:\ccc\xuxigouhanshu\xuxigouhanshu\rect.h(4): error C2236: 意外的“class”“Rect”。是否忘记了“;”? 这个是是吗意思
#ifndef RECT_H
#define RECT_H
#include"Shape.h"
class Rect:public Shape
{
public:
Rect(double width,double height);
~Rect();
virtual double calcArea();
protected:
double m_dWidth;
double m_dHeight;
};
#endif