《游戏开发:世嘉新人培训教材》碰到的问题 error C2011: '' : 'class' type redefinition

问题:

Error C2011 'Sequence::Game::Play': 'class' type redefinition

 

解决方案:

#ifndef AAA_HEADER // 新增
#define AAA_HEADER // 新增

#include "stdafx.h"

class AAA
{
public:
    std::string strX;
    std::string strY;
};

#endif              // 新增

问题解答地址:https://stackoverflow.com/questions/25713718/error-c2011-class-type-redefinition
posted @ 2022-05-26 16:44  不吐槽会死星人  阅读(144)  评论(0)    收藏  举报