⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 os.h

📁 国外一套很好的游戏代码,款经典的小游戏 希望大家提出宝贵意见 让我们一起进步
💻 H
字号:
/*	os.h		(c) Richard Thrippleton	Licensing terms are in the 'LICENSE' file	If that file is not included with this source then permission is not given to use this source in any way whatsoever.*/#include <stdio.h>class os //A module defining some things that are regrettably os specific{	public:	static void init(); //Initialise anything os specific, such as signals		static void finish(); //OS level cleanup tasks	static FILE* openpersonal(const char* fnam,const char* flag); //Open up a file of given name from personal settings area, with given flags to fopen	static char* gettime(); //Get the current time and date as a string	static long getseed(); //Get a number suitable for a random number seed, usually from the clock	private:	static char tbuf[256]; //Time string buffer};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -