📄 include.h
字号:
//$$ include.h include files required by various versions of C++
//#define Glock // for Glockenspiel on the PC
//#define ATandT // for AT&T C++ on a Sun
#ifdef __GNUG__
#define GXX // for Gnu C++
#endif
#define TEMPS_DESTROYED_QUICKLY // for compiler that delete
// temporaries too quickly
//#define DO_FREE_CHECK // check news and deletes balance
#define USING_DOUBLE // elements of type double
//#define USING_FLOAT // elements of type float
#define Version21 // version 2.1 or later
#ifdef __ZTC__ // Zortech
#include <stdlib.h>
#ifdef WANT_STREAM
#include <stream.hpp>
#define flush "" // doesn't have io manipulators
#endif
#ifdef WANT_MATH
#include <math.h>
#include <float.h>
#endif
#endif
#ifdef __BCPLUSPLUS__ // Borland
#include <stdlib.h>
#ifdef WANT_STREAM
#include <iostream.h>
#include <iomanip.h>
#endif
#ifdef WANT_MATH
#include <math.h>
#define SystemV // optional in Borland
#include <values.h> // Borland has both float and values
#endif
#undef __TURBOC__ // also defined in Borland
#endif
#ifdef __TURBOC__ // Turbo
#include <stdlib.h>
#ifdef WANT_STREAM
#include <iostream.h>
#include <iomanip.h>
#endif
#ifdef WANT_MATH
#include <math.h>
#define SystemV // optional in Turbo
#include <values.h>
#endif
#endif
#ifdef ATandT // AT&T
#include <stdlib.h>
#ifdef WANT_STREAM
#include <iostream.h>
#include <iomanip.h>
#endif
#ifdef WANT_MATH
#include <math.h>
#define SystemV // must use System V on my Sun
#include <values.h> // as float.h is not present
#endif
#endif
#ifdef GXX // Gnu C++
#include <stdlib.h>
#ifdef WANT_STREAM
#include <stream.h> // no iomanip in G++
#define flush ""
#endif
#ifdef WANT_MATH
#include <math.h>
#include <float.h>
#endif
#ifndef TEMPS_DESTROYED_QUICKLY
#define TEMPS_DESTROYED_QUICKLY
#endif
#endif
#ifdef Glock // Glockenspiel
extern "C" { #include <stdlib.h> }
#ifdef WANT_STREAM
#include <stream.hxx>
#include <iomanip.hxx>
#endif
#ifdef WANT_MATH
extern "C" { #include <math.h> }
extern "C" { #include <float.h> }
#endif
#define NO_LONG_NAMES // very long names don't work
#endif
#ifdef USING_FLOAT // set precision type to float
typedef float Real;
typedef double long_Real;
#endif
#ifdef USING_DOUBLE // set precision type to double
typedef double Real;
typedef long double long_Real;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -