我刚碰到一个尴尬的问题,有一个简单的修复,但不是我喜欢做的一个。在我的类的构造函数中,我正在初始化数据成员的数据成员。下面是一些代码: class Button {
private:
// The attributes of the button
SDL_Rect box;
// The part of the button sprite sheet that w
这是SDL在visual studio 2005中需要的一些代码,以使我的简单程序能够工作。代码在做什么?我拥有它的唯一原因是因为我的教练告诉我要把它放进去,永远不会解释它。 // what is this code doing?
//---------------------------------------------------------
#ifdef WIN32
#pragma