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