error C2143: 语法错误 : 缺少“}”(在“常量”的前面)
enumEPixelFormat{PF_Unknown=0,PF_A32B32G32R32F=1,PF_A8R8G8B8=2,PF_G8=3,PF_G16=4,PF_DX...
enum EPixelFormat
{
PF_Unknown = 0,
PF_A32B32G32R32F = 1,
PF_A8R8G8B8 = 2,
PF_G8 = 3,
PF_G16 = 4,
PF_DXT1 = 5,
PF_DXT3 = 6,
PF_DXT5 = 7,
PF_UYVY = 8,
PF_FloatRGB = 9,
PF_FloatRGBA = 10,
PF_DepthStencil = 11,
PF_ShadowDepth = 12,
PF_FilteredShadowDepth = 13,
PF_R32F = 14,
PF_G16R16 = 15,
PF_G16R16F = 16,
PF_G16R16F_FILTER = 17,
PF_G32R32F = 18,
PF_A2B10G10R10 = 19,
PF_A16B16G16R16 = 20,
PF_D24 = 21,
PF_R16F = 22,
PF_R16F_FILTER = 23,
PF_BC5 = 24,
PF_V8U8 = 25,
PF_A1 = 26,
PF_NULL = 27,
PF_INTZ = 28,
PF_RAWZ = 29,
PF_A8L8 = 30,
PF_MAX = 31 //如果我把这段给屏蔽掉,生成就正常了
};
源代码是这样的,如何解决,错误提示一共有是:
error C2143: 语法错误 : 缺少“}”(在“常量”的前面)
error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
error C2059: 语法错误 : “常量”
error C2143: 语法错误 : 缺少“;”(在“}”的前面)
error C2059: 语法错误 : “}”
只需要把PF_MAX = 31去掉就正常了,郁闷,怎么解决,求高手解答 展开
{
PF_Unknown = 0,
PF_A32B32G32R32F = 1,
PF_A8R8G8B8 = 2,
PF_G8 = 3,
PF_G16 = 4,
PF_DXT1 = 5,
PF_DXT3 = 6,
PF_DXT5 = 7,
PF_UYVY = 8,
PF_FloatRGB = 9,
PF_FloatRGBA = 10,
PF_DepthStencil = 11,
PF_ShadowDepth = 12,
PF_FilteredShadowDepth = 13,
PF_R32F = 14,
PF_G16R16 = 15,
PF_G16R16F = 16,
PF_G16R16F_FILTER = 17,
PF_G32R32F = 18,
PF_A2B10G10R10 = 19,
PF_A16B16G16R16 = 20,
PF_D24 = 21,
PF_R16F = 22,
PF_R16F_FILTER = 23,
PF_BC5 = 24,
PF_V8U8 = 25,
PF_A1 = 26,
PF_NULL = 27,
PF_INTZ = 28,
PF_RAWZ = 29,
PF_A8L8 = 30,
PF_MAX = 31 //如果我把这段给屏蔽掉,生成就正常了
};
源代码是这样的,如何解决,错误提示一共有是:
error C2143: 语法错误 : 缺少“}”(在“常量”的前面)
error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
error C2059: 语法错误 : “常量”
error C2143: 语法错误 : 缺少“;”(在“}”的前面)
error C2059: 语法错误 : “}”
只需要把PF_MAX = 31去掉就正常了,郁闷,怎么解决,求高手解答 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询