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

📄 my.h

📁 自己做的常用库和实现的数据结构。public domain.
💻 H
字号:
/* All-in-one header. I'm a lazy boy. -:) * * Written by Cyril Hu (cyrilhu@gmail.com), public domain. */#ifndef _MY_H_#define _MY_H_/* Macros suitable for compiler switch : * __NOT_UNIX * =0, under DOS. * =1, under WIN. * ... * __BCC * =20, using Turbo C 2.0. * =30, using Turbo C++ 3.0. * =31, using Borland C++ 3.1. * ... * __MSC * =60, using MS VC++ 6.0. * ... * __ISOC  * =1999, using ISO C99 standard. * ... * __POSIX  * =200112L, using POSIX.1 standard. * ... */#include<assert.h>#include<ctype.h>#include<errno.h>#include<float.h>#include<limits.h>#if !defined(__BCC) || (defined(__BCC) && __BCC > 20)#	include<locale.h>#endif#include<math.h>#include<setjmp.h>#include<signal.h>#include<stdarg.h>#include<stddef.h>#include<stdio.h>#include<stdlib.h>#include<string.h>#include<time.h>#if defined(__NOT_UNIX)#	if defined(__BCC)#		if __BCC >= 20#			include<alloc.h>#			include<bios.h>#			include<conio.h>#			include<dir.h>#			include<dos.h>#			include<fcntl.h>#			include<graphics.h>#			include<io.h>#			include<malloc.h>#			include<mem.h>#			include<process.h>#			include<share.h>#			include<values.h>#			include<sys\stat.h>#			include<sys\timeb.h>#			include<sys\types.h>#		elif __BCC >= 30#			ifdef __cplusplus#				include<bcd.h>#				include<complex.h>#				include<constrea.h>#				include<fstream.h>#				include<generic.h>#				include<iomanip.h>#				include<iostream.h>#				include<new.h>#				include<stdiostr.h>#				include<strstrea.h>#			endif#			include<direct.h>#			include<dirent.h>#			if __BCC >= 31 || defined(__MSC)#				include<sys\locking.h>#			else#				include<locking.h>#			endif#			include<memory.h>#			include<search.h>#			include<utime.h>#		endif#	endif /* if defined(_BCC) */#	if defined(__MSC)#	endif /* if defined(__MSC) */	typedef int ssize_t;#elif defined(__POSIX) && __POSIX >=200112L#	include<dirent.h>#	include<fcntl.h>#	include<fnmatch.h>#	include<glob.h>#	include<grp.h>#	include<netdb.h>#	include<pwd.h>#	include<regex.h>#	include<tar.h>#	include<termios.h>#	include<unistd.h>#	include<utime.h>#	include<wordexp.h>#	include<arpa/inet.h>#	include<net/if.h>#	include<netinet/in.h>#	include<netinet/tcp.h>#	include<sys/mman.h>#	include<sys/select.h>#	include<sys/socket.h>#	include<sys/stat.h>#	include<sys/times.h>#	include<sys/types.h>#	include<sys/un.h>#	include<sys/utsname.h>#	include<sys/wait.h>#endif /* if defined(__NOT_UNIX) */#if defined(__ISOC) && (__ISOC >= 1999)#	include<complex.h>#	include<fenv.h>#	include<inttypes.h>#	include<iso646.h>#	include<stdbool.h>#	include<stdint.h>#	include<tgmath.h>#	include<wchar.h>#	include<wctype.h>#else#	include "mybool.h"#endif#include "mymath.h"#include "mystring.h"#include "mylib.h"#endif /* _MY_H_ */

⌨️ 快捷键说明

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