程序更改

来源:百度知道 编辑:UC知道 时间:2024/06/18 23:59:27
/*******************************
*闪电创意工作室 制作 *
*==========2009.1.12===========*
*类名:玩家 *
*==============================*
*ID:玩家号 *
*sg:特权 *
*------------------------------*
*i:初始化 *
*IDWrite:写ID值 *
*sgr:检测sg *
*IDRead:读ID *
*sgRead:读sg *
*==============================*
*shandian Mr.Wang *
*******************************/

//---------------------------------------------------------------------------

#ifndef playerH
#define playerH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <ExtCtrls.hpp>
//----------------------------------------------------------

这东西搞鬼了,你得编译.h文件||| 可能只能在命令行编译了... 集成环境怎么改变源文件类型我还真不知道|||

player *player1;
原因是这行代码,在头文件中,不可以定义全局变量,只能定义常量。