class BO2Offsets
{
public:
struct Prestige
{
u32 Offset { 0x000000 };
char One { 0x01 },
Two { 0x02 },
Three { 0x03 },
Four { 0x04 },
Five { 0x05 },
Six { 0x06 },
Seven { 0x07 },
Eight { 0x08 },
Nine { 0x09 },
Ten { 0x0A },
MasterPrestige { 0x0B },
CheatedPrestige { 0x0C };
};
};
BO2Offsets BO2;
的main.cC++ - 错误: 'BO3' 在此范围内未声明
BO2 *BO3;
我创建一个新的元素BO2但它返回我一个错误:
error: 'BO3' was not declared in this scope
我该如何解决这个问题?
编辑: 当我宣布BO3这样的:
BO2Offsets *BO3;
我用BO3这样的:
BO3->Prestige->Offset
而且我得到一个错误:错误:无效使用的“结构BO2Offsets ::威望“|
现在完成最小示例。 – gsamaras