我是靠谱客的博主 强健超短裙,这篇文章主要介绍C语言2143是什么错误,error C2143: syntax error : missing ';' before '*'错误,现在分享给大家,希望可以做个参考。
cEnemyMgr * mEnemyMgr;//敌机管理
定义了一个类,然后这句话报错,错误如题。
以下是这个类:
#pragma once
#include”cApp.h”
#include
#include
#include
#include “cmovablemgr.h”
#include”IStrategy.h”
#include”cStrategyManager.h”
#include”ximage.h”
#include”cImgManager.h”
#include”IMovable.h“
#include”cImg.h”
#include”cEnemy.h”
#include
using namespace std;
#ifdef UNICODE
#define tstring wstring
#else
#define tstring std::string
#endif
struct EnemyType
{
cImg * img;
UINT hp;
};
//关卡脚本
struct Script
{
double time;//敌机出现的时间
TCHAR type[20];//敌机的类型
UINT xpos;
UINT ypos;
TCHAR strategy[20];//敌机的攻击策略
TCHAR missileType[3][20];//一架敌机最多有三种子弹<
最后
以上就是强健超短裙最近收集整理的关于C语言2143是什么错误,error C2143: syntax error : missing ';' before '*'错误的全部内容,更多相关C语言2143是什么错误,error内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复