摘要:
#define prt(s, format)(printf("您按下的是:%"#format"\n", s)) const char* keys[] = { "F1", "F2", "F3", "F4", "F5" }; //事件循环 SDL_Event e; bool quit = false; 阅读全文
posted @ 2022-11-21 17:31
tetrachloroethylene
阅读(54)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include "include/SDL/SDL.h" //主窗口 SDL_Window* gWindow = NULL; //主窗口内含的主表面 SDL_Surface* gScreenSurface = NULL; //图片表面 SDL_Surface* 阅读全文
posted @ 2022-11-21 16:26
tetrachloroethylene
阅读(189)
评论(0)
推荐(0)
摘要:
饿汉模式:上来不管三七二十一直接创建对象再说。 饿汉模式创建方式: 1.先创建一个私有的构造函数(防止其它地方直接实例化) 2.定义私有变量 3.提供公共的获取实例的方法 public class Single { //饿汉模式 //先创建一个表示单例的类 static class Singleto 阅读全文
posted @ 2022-11-21 13:04
tetrachloroethylene
阅读(294)
评论(0)
推荐(0)

浙公网安备 33010602011771号