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

📄 object.h

📁 贪吃蛇的源代码..比较简单,就不介绍了...
💻 H
字号:
#pragma once
//Specifies that the file will be included (opened) only once by the compiler when compiling a source code file. 
#include "Global.h"

class Object
{
private:
    static UINT32   ObjNum; //系统中的对象总数,在main(){} 之前初始化
protected:
    UINT32          ObjSN;  //对象序列号,创建对象时,将ObjNum的值赋给ObjSN
public:
    Object(void);
    virtual ~Object(void);
    static UINT32 GetObjNum(void);
    UINT32 GetObjSN(void) const;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -