顯示錯(cuò)誤 1>e:\ccc\xuxigouhanshu\xuxigouhanshu\rect.h(4): error C2236: 意外的“class”“Rect”。是否忘記了“;”? 這個(gè)是是嗎意思
#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