📄 d-shape.h
字号:
#ifndef __SHAPE_H__
#define __SHAPE_H__
#include "graphenv.h"
class CShape
{
private:
static long m_nObjectCount;
protected:
long m_nID;
public:
CShape() { m_nID = m_nObjectCount++; }
~CShape() { m_nObjectCount--; }
virtual void Show(const int color) const = 0;
virtual void Move(const int offsetX, const int offsetY) = 0;
virtual void Inflate(const float s) = 0;
};
#ifndef __OBJECT_COUNT__
#define __OBJECT_COUNT__
long CShape::m_nObjectCount = 0;
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -