CCPoint m_beginPos;
cocos2d::CCPoint m_beginPos;
在头文件中声明变量时没有导入Cocos2d-x的头文件,导致报下列错误:
error C2146: 语法错误: 缺少“;”(在标识符“m_beginPos”的前面)
error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
CCPoint m_beginPos;
cocos2d::CCPoint m_beginPos;
在头文件中声明变量时没有导入Cocos2d-x的头文件,导致报下列错误:
error C2146: 语法错误: 缺少“;”(在标识符“m_beginPos”的前面)
error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int