page305专题

第15章 《乐趣》Page305~311犯的错误,窗口GetID()为0的问题

Page305~311, 第一遍 //main.cpp#include <iostream>#include <SDL2/SDL.h>#include "sdl_initiator.hpp"#include "sdl_error.hpp"#include "sdl_window.hpp"using namespace std;int main(int argc, char* argv[

第15章 《乐趣》Page305~311, 代码精简以后,讨论一下引用含义的问题

将Page305~311的代码精简了一下,讨论一下引用含义的问题,精简之后的代码如下: #include <iostream>#include <SDL2/SDL.h>using namespace std;namespace sdl2{char const* last_error(){return SDL_GetError();}struct Initiator{private:I