⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 d-shape.h

📁 一些学习c++的例题
💻 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 + -