📄 tools.h
字号:
#ifndef __TOOLS_H
#define __TOOLS_H
#if !defined( __CONIO_H )
#include "conio.h"
#endif
#if !defined( __GRAPHICS_H )
#include "graphics.h"
#endif
#if !defined( __CTYPE_H )
#include "ctype.h"
#endif
#if !defined( __IOSTREAM_H )
#include "iostream.h"
#endif
#if !defined( __BIOS_H )
#include "bios.h"
#endif
#if !defined( __MALLOC_H )
#include "malloc.h"
#endif
#if !defined( __STRING_H )
#include "string.h"
#endif
#if !defined( __STDLIB_H )
#include "stdlib.h"
#endif
#if !defined( __DIR_H )
#include "dir.h"
#endif
#if !defined( __STDIO_H )
#include "stdio.h"
#endif
#if !defined( __DOS_H )
#include "dos.h"
#endif
#if !defined( __MATH_H )
#include "math.h"
#endif
#if !defined( __FSTREAM_H )
#include "fstream.h"
#endif
#if !defined( __FCNTL_H )
#include "fcntl.h"
#endif
#if !defined( __IO_H )
#include "io.h"
#endif
#if !defined( __IOMANIP_H )
#include "iomanip.h"
#endif
#define nil 0
#define PI 3.14159
typedef unsigned char byte;
typedef unsigned int word;
typedef word chwordmode[16];
typedef struct {
word code;
chwordmode cwm;
}xhzk1;
typedef struct {
int psorted,padded;
word addednum,sortednum;
}xhzktype;
typedef xhzk1 hzkdotarr[193];
#define TRUE 1
#define FALSE 0
#define HZNUM 400
#define XHZKCOUNT 0
#define HAVEMD FALSE
xhzktype xhzk={0,nil,0,193};
hzkdotarr xhzkarr ={
{41377,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{41466,0,0,0,0,16384,12288,15360,65087,15360,12288,16384,0,0,0,0,0},
{41467,0,0,0,0,1,6,30,65087,30,6,1,0,0,0,0,0},
{41468,0,32768,49153,49153,57347,57347,36868,32768,32768,32768,32768,32768,32768,32768,32768,0},
{41469,0,32768,32768,32768,32768,32768,32768,32768,32768,36868,57347,57347,49153,49153,32768,0},
{41904,0,0,57347,12294,6156,6156,6156,6156,6156,6156,6156,6156,12294,57347,0,0},
{41905,0,0,32768,32771,32769,32769,32769,32769,32769,32769,32769,32769,32769,49155,0,0},
{41906,0,0,49155,24582,12300,12300,12288,12288,24576,49152,32769,4099,4102,61455,0,0},
{41907,0,0,49155,24582,12300,12288,24576,49153,24576,12288,12288,12300,24582,49155,0,0},
{41908,0,16384,49152,49153,49155,49154,49158,49164,49164,49176,61471,49152,49152,57345,0,0},
{41909,0,0,61455,12,12,12,49167,24590,12288,12288,12288,12300,24582,49155,0,0},
{41910,0,0,49155,24582,12300,12,49165,24590,12300,12300,12300,12300,24582,49155,0,0},
{41911,0,0,61455,61455,12296,24576,49152,49152,32769,32769,3,3,3,3,0,0},
{41912,0,0,49155,24582,12300,12300,24582,49155,24582,12300,12300,12300,24582,49155,0,0},
{41913,0,0,49155,24582,12300,12300,12300,12300,28678,61443,12288,12300,24582,49155,0,0},
{43428,0,0,0,0,0,0,0,65535,0,0,0,0,0,0,0,0},
{45236,16400,8208,16,65043,762,17428,16400,65087,35024,34832,2065,36880,24592,20496,35920,1059},
{45300,16400,18448,64535,16400,63741,32784,65079,8249,20565,20050,62613,16400,63507,16400,16400,16400},
{45519,32800,32800,38944,57406,32800,33826,33836,31856,33,1025,65279,1,1,1,1,1},
{45535,32768,32800,32784,34832,64519,34816,35056,34832,2065,2065,2065,20498,8212,1576,64583,0},
{45536,32784,18448,64547,2082,2122,63739,18,1058,65091,38134,37962,64515,37914,38114,37954,3074},
{45540,2,2049,64639,16388,20500,18452,19492,17476,61471,8200,16388,32770,1,49154,15372,2096},
{45546,16,4112,63507,16,252,1040,65079,16440,16468,20561,18577,19474,17428,16400,16401,32784},
{45549,1,2049,64639,1,63551,1,1025,65279,2,4101,40972,16436,12484,3589,1030,4},
{45730,4112,12300,16388,64575,8196,8196,8196,9220,65279,8196,8196,8196,8200,8200,8208,8224},
{45755,1024,65279,32768,32768,1,1,16387,8197,6153,3089,1057,65,1,1,1,1},
{45769,2048,31744,32895,2048,6161,40968,1,1025,65279,32771,16389,12297,3601,1121,1,1},
{45771,16388,17412,65279,16388,14336,49215,4114,8201,1025,65279,32771,16389,12297,3601,1121,1},
{45785,4112,63505,4113,61457,1276,48663,42004,48159,16432,17616,65055,57360,20497,19986,17492,16416},
{45798,0,0,63551,2048,2066,4113,4105,8196,16388,32770,1,32770,16388,12296,3632,1216},
{45818,2,1,2049,64639,4104,8196,18436,64543,16,16,16,16,32,32,64,128},
{46005,2,2050,64639,4,9,17,8225,61503,1,1025,65279,1,1,1,1,1},
{46022,16388,16398,32888,32776,65033,1278,10248,8220,43034,42024,9769,8777,8330,8200,40968,16392},
{46041,2048,64579,2082,2082,2050,63491,2274,32802,32802,16418,8226,7204,40,1616,64655,0},
{46077,16384,16504,41032,41040,4177,3682,62549,16456,20552,64591,16488,20561,19522,17476,16449,32832},
{46265,4096,30720,32831,1,2049,64639,8201,9225,65279,8201,10249,64639,1,4097,63551,0},
{46286,32768,32832,32816,2065,64513,2050,20488,16400,16416,16608,40992,40992,4129,2082,3620,1064},
{46291,0,8200,8200,8200,8200,8200,8200,20488,20488,20488,20500,34834,34849,3105,1602,1156},
{46310,2,1026,65279,4,8,63499,4112,8208,17456,65119,16528,16400,16400,16400,16401,32784},
{46322,16,16,1040,65043,8444,8208,8212,8216,8240,8400,8208,8208,8208,8208,41040,16416},
{46323,1,1,1,1,1025,65279,1,32770,32770,16386,16388,8196,4104,3600,1120,0},
{46333,16392,18440,64531,16416,16456,17416,65047,4144,5200,65175,4112,4114,4113,4113,20496,8208},
{46501,4112,8200,18436,64575,2081,2081,63551,2081,2081,63551,33,1025,65279,1,1,1},
{46525,1025,33919,1032,9232,9250,9281,42111,41992,9226,9343,9224,9224,1032,33807,5368,2048},
{46532,16400,16400,17442,32383,33858,1091,1090,33858,25726,9282,1090,1090,1090,1150,10306,4096},
{46536,16400,18452,64574,8265,4101,1,63551,1,65279,16384,20480,63551,16392,16388,16385,32768},
{46554,32784,34836,64574,8265,63679,2049,2049,63551,33,1057,65087,1027,1029,9241,6241,1},
{46556,8200,24582,34818,64639,2049,2049,63551,2081,33,64575,1027,1029,5145,2145,1,1},
{46557,4100,10306,64559,34848,34816,63503,33000,34856,64559,34849,34850,43044,36904,32848,34440,64519},
{46563,2,2,2050,64515,2,4098,63551,4128,4128,4128,61503,0,4137,51236,17476,1152},
{46757,1024,65035,8444,17424,65041,1041,9233,9233,9233,9233,9233,9233,16400,22608,33824,515},
{46760,2,1,65151,576,9344,61471,1,1,8209,61457,17,17,17,1577,64583,128},
{46767,16384,16392,16508,17408,65029,17662,17424,17424,17440,17444,33858,34046,1089,1025,10242,4100},
{46785,8192,10272,64531,8208,8192,65031,37616,21520,4113,37904,65047,8208,8212,20504,35856,1027},
{46792,1,33792,65087,8226,10274,64575,8226,57379,32,61487,8226,16417,32800,24643,7820,1072},
{46809,1040,65041,8212,17662,65041,1109,9301,9301,9301,9341,9301,9233,8212,20504,35856,1027},
{46846,0,0,4096,63551,0,0,0,0,0,0,0,1024,65279,0,0,0},
{47029,2048,7232,57395,18,2,63490,2290,36882,20498,8210,20498,35860,1045,40,1604,64515},
{47030,8200,9224,65279,8200,4128,63515,4170,4130,4130,20490,8434,34,546,546,65057,32},
{47037,4,3,1,1024,65279,4,4100,63495,4100,4100,4100,4104,4104,4112,40992,16448},
{47043,32768,16416,16400,1040,65031,32768,35056,64528,34832,34832,34832,34832,2069,2073,20498,8196},
{47050,1028,65151,9285,9285,9285,9341,9285,64581,1093,125,69,581,581,581,65108,136},
{47089,1024,65279,32768,1,3,24581,6153,1585,4801,63519,4112,4112,4112,4112,61471,4112},
{47282,65279,16388,63551,18468,63551,18,64547,74,63511,18482,63571,145,63507,4125,57872,7191},
{47288,16388,8200,4112,3104,9280,8200,16388,16388,32770,32770,1,32770,16388,12296,3632,1216},
{47300,32768,32772,33022,33796,65028,2053,34942,34884,34880,20544,20544,8256,20556,34928,3649,1030},
{47303,8200,18436,64639,1,4097,63551,1,2049,64639,0,63551,18468,18468,18468,65279,0},
{47318,1040,65043,1042,1054,3107,35874,21630,9362,9234,21630,35858,3091,1046,1050,5138,2050},
{47327,2,1025,65279,0,61471,4112,4112,61471,1024,65151,1088,58447,9288,9288,58447,3136},
{47345,17,17,63505,2066,4351,40980,16440,41012,4177,3666,64663,2074,2066,2066,63507,2066},
{47350,1,1,32770,16388,8200,4113,3617,1217,1,1,1,1,1,1,1,1},
{47353,2064,64529,2065,2065,63741,2065,2105,63541,17493,18513,12433,8209,4113,19985,33809,17},
{47524,0,2048,64639,1,1,1,1,1,1,1,1,1,1025,65279,0,0},
{47545,32784,32784,33808,65040,1277,1042,17456,17464,33876,42064,5137,62481,5136,1040,10256,4112},
{47586,1,2081,3089,4105,8201,1025,65279,16388,16388,16388,16388,16392,16904,16912,15904,64},
{47778,32768,16636,1028,65035,16400,32784,2069,63515,4145,9424,19472,36881,8214,20496,35921,1062},
{47813,4096,63519,4112,4112,4112,61471,1024,65279,4,4104,63519,4096,4096,4096,40960,16384},
{47821,2,7,120,1032,65034,34047,33800,33816,33820,33834,33834,33864,64648,33800,8,8},
{47823,1,1,32770,16388,8200,4112,60975,1216,4096,63519,4112,4112,4112,4112,61471,4112},
{47859,4096,30720,32831,32,1056,65087,32,2080,64551,2084,2084,2084,2116,2116,63623,2052},
{47866,1032,32264,17416,17417,50431,31752,17416,17418,17471,31778,17442,17442,17442,17470,37922,2049},
{48088,0,1024,65151,1088,17472,58439,17476,17476,17476,17476,50247,17476,1088,64639,1088,0},
{48114,20480,18432,16384,65279,16384,16386,18495,18466,18466,20514,20542,8224,8711,21112,35328,1027},
{48122,16,4112,63505,4113,4349,4113,4145,4153,4181,4177,4241,4113,4625,4626,3604,24},
{48301,2064,64529,2065,2301,63521,1064,65099,2173,63497,2057,63503,2297,2121,65039,2056,2056},
{48332,8208,8210,8226,9251,44106,28922,8210,64547,8258,28922,44098,9219,8218,9442,65091,0},
{48356,1056,65051,1032,9280,62543,9288,9288,9288,58447,9288,9288,9288,58447,9288,5184,2112},
{48373,4096,6208,5168,65047,4100,4100,53261,5140,54309,21733,21541,22565,53285,10789,17928,33296},
{48380,4128,4135,31801,5185,65154,5242,31780,4135,31993,4129,5157,65058,4138,4149,38440,31744},
{48381,16400,31774,36904,2117,8200,17412,65279,2050,2111,18466,18494,18466,18494,18466,2090,6180},
{48382,16400,16400,16402,18466,64547,16484,16548,16424,17440,65087,16416,16416,16416,16416,16416,16416},
{48552,16384,18432,64763,18440,65047,18448,63547,16392,63627,16464,18512,64567,16416,16464,18056,64519},
{48583,8,57359,16400,34848,64607,2193,2065,63519,2065,2065,63519,2065,2065,2081,10305,4224},
{48609,8200,8200,9232,65059,8260,8312,64521,16,1056,65149,1025,1025,1037,1137,64545,1025},
{48861,1040,65043,1042,1042,64767,8210,9238,65051,8242,9426,65043,1045,1045,1045,64601,1057},
{48863,8192,61455,8200,8200,57359,8200,57359,8200,57359,8200,9224,65279,16388,8204,6160,2080},
{49109,2,1,65151,576,17540,12300,6160,2080,0,63551,1,1,1,1025,65279,0},
{49133,2,1,65151,16964,17540,64639,20484,63519,4112,4113,4113,36881,36882,33284,33288,32368},
{49321,16400,8208,9232,65043,254,18,22,26,50,210,18,18,18,20,84,40},
{49588,4128,5156,65082,8258,20544,38136,65062,4130,4346,5154,65059,4138,4146,5669,64520,0},
{49597,1024,65279,16388,17412,65151,17476,17476,17476,17476,17476,42058,7249,3170,1088,5184,2112},
{49616,1025,33919,9232,9232,9247,9249,9249,9298,9354,9220,9220,9224,1040,1056,5184,2048},
{49645,4096,63519,4112,4112,4112,61471,18,2050,64639,2050,2050,2052,2052,34824,20496,8288},
{50171,2,2,61447,4100,8204,16402,32769,6,2072,64751,2056,2056,2056,2056,63503,2056},
{50339,4113,5137,65055,4113,6397,64531,2098,63547,2134,63571,16528,65055,16400,45072,3601,1046},
{50636,4098,63519,4112,4114,5137,65279,4112,4114,20513,8256,63551,18468,18468,18468,65279,0},
{50877,2048,64639,1,4113,4113,8201,8201,1025,65279,1,1,1,1,1,1,1},
{50928,8,2056,64520,2174,2056,2056,63742,34824,32808,33838,33832,31784,40,1624,64655,0},
{50935,63550,34850,34850,34850,63550,8193,5121,65279,32770,24588,6192,65278,34850,34850,34850,63550},
{51173,16384,18496,64567,16400,63619,16480,65071,2056,64531,2082,63715,2082,63523,2082,10274,4130},
{51179,18432,64583,16416,63523,16384,65263,2080,64547,2082,63523,2082,63523,2090,2098,10274,4098},
{51192,2048,64575,32,2088,6180,8226,16417,32800,16417,12322,6180,2088,32,1056,65087,0},
{51361,1,33023,34,64547,1086,33826,34850,34878,18466,20514,8226,20542,18658,36418,1027,2},
{51365,1,1,2049,64639,1,1,1,1025,65279,2,2,16388,8200,4112,63551,2048},
{51368,16,16,63507,2064,2302,2066,2097,4153,4181,41040,16528,40976,4113,3602,1044,16},
{51387,8208,8208,10256,9246,8226,65075,8266,20644,20500,34824,3601,1058,64,18468,17956,576},
{51406,8,6152,57355,16400,16400,16432,17488,65183,16400,16400,16400,16400,18448,64535,16,16},
{51435,4,2,1,1,1,32770,32770,32770,16388,16388,8200,8200,4112,4128,3648,1152},
{51437,16400,16400,16404,31998,33824,2089,8264,8318,8200,8200,20494,20728,34888,34824,1545,1034},
{51663,1,1,1,1,4097,63489,1,1,1,1,1,1,1,1025,65279,0},
{51688,61441,4129,4113,4113,4097,3586,244,63507,2065,4113,36880,40976,16404,45080,3603,1036},
{51706,1,17,17,2065,64575,33,65,65,4225,63551,1,1,1,1025,65279,0},
{51889,2048,2052,2174,2116,65095,2116,2116,34940,18500,18500,2116,2116,2172,18500,10240,4096},
{51893,2,1,65151,584,33926,32770,32784,32780,33796,65279,1,16385,8194,4100,3096,1120},
{51897,16400,17424,65055,16416,64551,17508,17572,17444,64551,17444,16418,32801,49184,12321,3622,1064},
{51901,32768,40960,36864,33792,65279,32768,32768,32830,32776,16392,16392,8201,8718,4720,2592,1024},
{51902,4096,63551,0,0,0,1024,65279,1,1,8201,6169,3105,1089,1,5,2},
{51911,57359,8200,8200,57359,8200,8200,57359,1024,65279,1,8201,61449,9,21,1571,64576},
{51940,16416,40992,41000,4349,3618,62533,80,50323,21754,54291,21562,54483,21522,17426,17426,52242},
{51959,2064,2064,2064,51223,32508,18452,34866,43066,6225,2129,34962,18450,18452,2072,10256,4112},
{51960,1,1025,65279,1,2049,64575,2081,2081,2081,63551,34851,16389,12297,3633,1217,1},
{51965,16392,16457,16426,33800,65279,2073,34860,34890,34832,37118,20514,8226,20500,34840,3621,1090},
{52139,0,1024,65277,33796,33860,33860,34856,18472,18448,20496,8232,12328,20548,34884,3713,1030},
{52142,1,1,1,2049,6145,8317,49157,32773,16393,8201,4113,3617,1089,129,5,2},
{52184,1,2049,64639,1,63551,1,65279,8196,49183,1,8194,61471,1,8201,6165,2082},
{52198,8192,9336,65098,8273,17489,65120,17495,31817,17481,31817,17513,17489,21569,18497,32834,32324},
{52217,2050,7175,57400,32800,32800,33854,65058,34850,34850,34878,34850,34848,2081,2114,2180,2048},
{52643,32784,18448,64535,32,63523,2146,63651,32,65071,552,62515,16416,16416,16416,16417,32800},
{52668,1024,65151,1092,58439,17484,33874,1089,33858,17478,15433,38000,1094,1089,33856,64639,1088},
{52706,16392,16392,16392,16400,16415,24609,20513,18530,18066,16906,16388,16392,16400,16416,16448,16384},
{52714,2,1,65151,576,9344,61471,0,2048,64639,32772,32772,32772,33288,33288,32272,96},
{52903,1024,65151,1089,9281,62559,1089,58447,1089,62559,5185,5185,21569,9281,1089,64639,1088},
{52906,32768,32784,32780,32772,33792,65279,1025,1025,1026,33794,25604,9224,1040,1056,10304,4096},
{52923,32776,16392,16392,2064,64535,48,2130,2194,4113,4113,36880,40976,9232,65055,16,16},
{52932,2,1,1025,65279,4112,4104,8200,8196,16388,32770,1,32770,24580,4104,3632,1216},
{52938,1056,65051,1032,1088,9280,62543,9288,9288,9288,9288,9288,58447,9288,1088,5184,2112},
{53186,1024,65279,2,2,2,32770,16386,12290,4098,2,2,2,2,2,2,2},
{53204,4096,63519,4112,4112,61471,4112,4112,61471,20500,17476,19508,20500,16388,17412,65279,0},
{53214,2048,64637,2117,2121,63561,2129,2121,63561,1093,34885,20549,8297,4177,20033,33857,65},
{53234,2,4,1032,65151,1088,9280,62543,9288,9288,9288,9288,58447,9288,1088,5184,2112},
{53243,16384,18498,20529,18448,64643,2146,2082,63499,2066,2082,63715,2082,2082,2082,10274,4130},
{53442,2064,7178,24703,16384,16418,17428,65279,18442,18559,18440,18442,34857,34888,2185,2088,2064},
{53454,32768,50303,3089,4113,8209,17425,3089,53503,8209,16913,1553,2065,4129,8225,16449,32769},
{53456,2056,64523,16,32,64,1032,65047,4144,4176,4240,4112,4112,4112,4112,20496,8208},
{53462,4096,63519,4112,4112,4112,4112,61471,20500,16388,16388,16388,16392,16904,16912,15904,64},
{53470,17,17,63505,4129,41002,16492,45225,11822,49192,4139,24616,34856,4131,24608,32801,38},
{53480,61471,1,65151,4689,25741,4113,1025,65279,2,2052,64575,34852,34852,34852,43044,4128},
{53490,1,34816,64575,32,63535,8224,16417,32800,64559,34848,36896,32800,32832,32832,32898,1},
{53496,16400,20496,63523,16416,16456,64767,9233,43040,8258,9465,65031,16384,24604,37088,3137,1026},
{53665,16384,16450,18482,64531,16386,17412,65271,40976,40976,40976,8721,8721,7698,44,1604,64515},
{53671,2082,2065,4113,8192,65151,576,1152,57375,16384,33793,65279,1,1,1,5,2},
{53715,2048,7168,57469,8196,8200,10257,15393,8317,8197,8197,10313,64553,16,1576,64583,128},
{53737,16392,16636,40968,41032,4169,3658,62541,72,18556,18438,18437,20509,4325,9284,65047,8},
{53930,2048,64639,16388,63551,18468,18468,63551,2,1026,65279,8196,8200,16390,32769,24582,4152},
{53941,16388,16388,16388,16388,17476,17444,18468,18452,20500,20500,24596,16388,16388,17412,65279,0},
{53947,0,0,0,0,0,0,1024,65279,0,0,0,0,0,0,0,0},
{53958,16392,16412,64752,33809,18450,12540,24592,41017,15924,16980,50320,9233,6160,12304,49168,23},
{53969,4096,63615,4096,4096,4128,4128,61503,4128,32,32,32,1056,1056,1056,64543,0},
{53972,0,2052,2114,2115,2113,2112,2112,2112,4161,4162,4164,8264,12368,18528,33793,1030},
{54177,1030,65144,33856,33856,33856,33860,33918,33856,33856,33856,33856,43086,36976,32768,32768,32768},
{54211,2048,64575,2081,2081,2081,63551,2081,2081,2081,63551,2081,2081,2081,2113,10305,4224},
{54224,2,1026,65279,4,4100,63503,4104,4120,61487,4168,4232,61455,4104,4104,20488,8200},
{54226,2,2,1026,65279,4,4,8,2056,64543,2088,2120,2184,2056,2056,63503,2056},
{54258,8224,10272,9248,65063,8440,40992,57383,42020,42020,43044,36927,4320,43587,18956,34304,1},
{54442,4096,63551,0,0,1024,65279,16388,16388,16388,16388,16388,16392,16904,16912,15904,192},
{54445,2048,64575,33,33,2082,64559,2088,63535,2088,63535,32800,36900,34884,33864,33938,1},
{54490,2,2,1026,65279,4,16388,16392,20488,63507,16432,16464,16528,16400,17424,65047,16},
{54513,16,63507,4113,40976,16636,40976,4117,19994,62517,16592,18448,64535,16400,16400,16464,16416},
{54518,2082,4129,40992,1056,65063,17660,21541,17444,64551,2080,64571,2274,63555,2050,63491,2050},
{54713,2048,64575,2080,63551,8226,8226,63535,8226,9250,65087,34852,20516,12324,3653,1158,4},
{54958,2,1,1,0,63615,4096,8192,16384,32768,1,2,12,48,1608,64519,0},
{54961,1,2049,64639,1,4097,63519,4112,61471,4112,61471,4112,61471,4112,5136,65279,0},
{54965,16392,18440,64527,16400,18448,64563,2130,63635,2066,63507,2066,63507,2066,2066,65055,16},
{54968,17,2065,7185,57361,765,529,65044,1048,65073,1233,1041,64529,1041,1041,64593,1057},
{54979,63551,18468,63551,1,64639,1,61471,4112,61471,4112,61471,4112,61471,5136,65279,0},
{54997,32784,32784,64544,2081,36933,20730,8208,20512,34880,3837,25602,4096,2076,49376,12352,2048},
{55024,2048,64591,32800,33,34819,55308,24801,16418,57388,20513,18466,18476,16417,34384,64655,0},
{55031,2,1,2049,64639,1,1,1,4097,63551,1,1,1,1,1025,65279,0},
{55251,0,61503,4096,8192,16384,32769,1025,65279,1,1,1,1,1,1,5,2},
{55252,1,2,4100,63519,4112,4112,61471,4112,4112,4112,61471,4112,4112,4112,61471,4112},
{55273,16,2064,64545,2081,2117,2297,63505,2081,2113,2301,63553,2049,2077,2273,65095,0},
{55283,2,2,2050,64767,4,4,4,4104,63503,32784,32784,32800,32832,33920,65151,0},
{55287,9,9,1033,65041,32786,32818,36948,63640,32784,32784,34832,64528,32784,32784,32784,32784}
};
const char fillpatterntype[8]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
const char fillmode[8]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
enum boolean {false,true};
const int fillcolor=YELLOW;
const int forecolor=YELLOW;
const int backcolor=BLUE;
int charwidth=8, charhigh=20;
boolean funckey,selected,selectorno,aborrted;
viewporttype curvp;
int graphdriver,graphmode,errorcode,font,gmaxx, addnum,initmode;
typedef void far * pointer;
typedef unsigned char * string;
typedef void far * ffield;
const int backspace=8;
const int esc=27;
const int ctrla=1;
const int ctrlb=2;
const int ctrlc=3;
const int ctrld=4;
const int ctrle=5;
const int ctrlf=6;
const int ctrlg=7;
const int ctrlh=8;
const int ctrli=9;
const int ctrlj=10;
const int ctrlk=11;
const int ctrll=12;
const int ctrlm=13;
const int ctrln=14;
const int ctrlo=15;
const int ctrlp=16;
const int ctrlq=17;
const int ctrlr=18;
const int ctrls=19;
const int ctrlt=20;
const int ctrlu=21;
const int ctrlv=22;
const int ctrlw=23;
const int ctrlx=24;
const int ctrly=25;
const int ctrlz=26;
//{ Funckey }
const int up=72;
const int down=80;
const int left=75;
const int right=77;
const int bigleft=115;
const int bigright=116;
const int ctrlleft=115;
const int ctrlright=116;
const int shiftup=56;
const int shiftdown=40;
const int shiftleft=52;
const int shiftright=54;
const int alta=30;
const int altb=48;
const int altc=46;
const int altd=32;
const int alte=18;
const int altf=33;
const int altg=34;
const int alth=35;
const int alti=23;
const int altj=36;
const int altk=37;
const int altl=38;
const int altm=50;
const int altn=49;
const int alto=24;
const int altp=25;
const int altq=16;
const int altr=19;
const int alts=31;
const int altt=20;
const int altu=22;
const int altv=47;
const int altw=17;
const int altx=45;
const int alty=21;
const int altz=44;
const int f1kb=59;
const int f2kb=60;
const int f3kb=61;
const int f4kb=62;
const int f5kb=63;
const int f6kb=64;
const int f7kb=65;
const int f8kb=66;
const int f9kb=67;
const int f10kb=68;
const int ins=82;
const int del=83;
const int pgup=73;
const int pgdn=81;
const int home=71;
const int endk=79;
int graph_state=0;
struct cursor // {1}
{
int row,col,word_high,word_width,cy; //:byte;
boolean sd,visible;
pointer pmem;
};
struct stringobj // {2}
{
unsigned char s[60];
int scrx1,scry1,scrx2,scry2;//byte;
};
struct gwindow // {3}
{int x1,y1,x2,y2; //byte;
int gx1,gy1,gx2,gy2,size;//word;
pointer pmem;
};
typedef char keynametype[40];
typedef char menunametype[40];
struct menunode// {4}
{menunametype menuname;
keynametype keyname;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -