令人尴尬的是,我在VS 2017中找不到“调用堆栈”窗口。我尝试使用Visual Studio 2015中使用的(菜单)“调试”>“ Windows”>“调用堆栈”的路径。
我想念什么?
我正在尝试初始化我的游戏窗口,但无法克服此错误。我试过了:
请参阅以下代码供您参考:
头文件:
#ifndef Game_hpp
#define Game_hpp
#include "SDL.h"
#include <iostream>
class Game
{
public:
Game();
~Game();
void init(const char* title, int xpos, int ypos, int width, int height, bool fullscreen);
void handleEvents();
void update();
void render();
void clean();
bool running()
{
return isRunning;
}
private:
bool isRunning;
SDL_Window *window;
SDL_Renderer *renderer;
};
#endif /* Game_hpp */
Run Code Online (Sandbox Code Playgroud)
Game.cpp - 定义函数的地方
#include "Game.h"
Game::Game()
{}
Game::~Game()
{}
void Game::init(const char *title, int xpos, int ypos, int width, …Run Code Online (Sandbox Code Playgroud)