我用这个在Visual Studio 2012中使用我的XNA游戏,一切都看起来很完美,但当我点击顶部栏上的调试按钮时,"开始调试"和"开始不调试"显示为灰色,我点击它们.我仍然可以单击"开始"箭头,当我这样做时,我收到以下错误消息.

你好我在互联网上到处寻找答案,但我找不到任何答案.
码:
#ifndef GAME_H
#define GAME_H
#include "drawEngine.h"
#include "sprite.h"
#include <iostream>
using namespace std;
class Game
{
public:
bool run(void);
protected:
bool getinput(char *c);
void timerUpdate(void);
private:
Sprite* player; // this gives me C2143
double frameCount;
double startTime;
double lastTime;
int posx;
//int posy;
DrawEngine drawArea;
};
#endif
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
sprite.h
#ifndef GAME_H
#define GAME_H
#include "drawEngine.h"
#include "game.h"
enum
{
SPRITE_CLASSID,
};
struct vector
{
float x;
float y;
};
class Sprite
{
public:
Sprite(DrawEngine *de, int s_index, float …Run Code Online (Sandbox Code Playgroud) Google 没有关于如何删除 node.JS 中的事件的文档
我已经能够使用以下代码将新事件添加到我的日历中:
calendar.events.insert({
auth: auth,
calendarId: 'primary',
resource: event,
}, function(err, event) {
if (err) {
console.log('There was an error contacting the Calendar service: ' + err);
return;
}
console.log('Event created: %s', event.htmlLink);
});
Run Code Online (Sandbox Code Playgroud)
我已经摆弄了 4 个小时了,正在寻找解决方案。