Abschain miner
Publish: 2021-05-07 04:02:16
1. Tiktok is sold on WeChat, and the electricity supplier is selling on the Kwai live platform. The last two don't know.
2. Hepian Shandong mining machinery fee thinks that at 4:30 the customer can change the water and electricity fee
3. 1. Arithmetic function
function identifier independent variable type meaning result type
ABS integer, real absolute value are the same as independent variable
arctan integer, real arctan real type
cos integer, real cosine real type
exp integer, real exponential real type
frac integer Real type fractional real type
int integral type, real type integer partial real type
ln integral type, real type natural logarithm real type
pi no independent variable PI real type
sin integral type, real type sine real type
SQR integral type, real type square with independent variable
sqrt integral type Real type square root real type
example: ABS (- 4) = 4, ABS (- 7.49) = 7.49, arctan (0) = 0.0
sin (PI) = 0.0, cos (PI) = - 1.0, frac (- 3.71) = - 0.71
int (- 3.71) = - 3.0, SQR (4) = 16, sqrt (4) = 2
2. Standard function
function identifier, self variable type, meaning result type
odd integer judgment
pred For example: odd (1000) = false PRED (2000) = 1999, succ (2000) = 2001
odd (3) = true PRED (# 39; x')= 39; w succ(' x')= 39; y'
3. Transformation function
function identifier independent variable type meaning result type
Chr byte independent variable corresponding character type
ord discrete type independent variable corresponding serial number long
round real rounding long
TRUNC real truncation rounding long
example: Chr (66) = 39; B' ord(' A')= 65 round (- 4.3) = - 5 TRUNC (2.88) = 2
4. Miscellaneous function
function identifier independent variable type meaning result type
random random real number between 0,1, The running Library of system TP, including commonly used standard functions and proceres, can be used to initialize the internal random number generator (long
upcase character type to make lowercase English letters into uppercase character type
downcase character type to make lowercase English letters into uppercase character type, It can be used directly in the program without the use statement
DOS has the functions of date, time, directory search, program execution, etc.
CRT has the functions of screen mode control, extended keyboard code, color, window, sound, etc.
printer supports print out operation
graph advanced graphics software package supports multiple graphics adapters
graph3 implements the graphic software package of tp3.0
turbo 3 is compatible with tp3.0 source program<
overlay realizes advanced coverage management
common processes and functions of system unit
ABS (x) f calculates absolute value of variable
addr (x) f measures variable address
append (f) P opens an existing text file, And point the file pointer to the end of the file to add the element
arctan (x) f anti tangent
assign (F, C) P assign the external file name represented by string c to the file variable f
assigned (x) P to test whether the pointer or variable in the program is empty
blockread (F, D, Num) P read type file
blockwrite (F, D, Num) P write typeless file
break P abort or end loop
chdir (path) P change current directory
Chr (x) f seek character with ASCII value of x
close (f) P close file
concat (S1, S2... S3) f string merging
continue P loop
(s, POS, len) f returns the substring of a string
cos (x) f cosine function
cseg f returns the current value of CS register
Dec (x) F X: = X-1
delete (s, POS, len), Len) P delete the substring of a string
dispose (P) P release a dynamic variable
DSEG f return the current value of DS register
EOF (f) f judge whether the file ends
eoln (f) f judge whether a line in the file type ends
erase (f) P delete an existing external file
Exit P process abort
exp (x) f exponential function with E as the base
current location of filepos (f) f file record
number of filesize (f) f file records
fillchar (D, len, Date) P fills the value or character
flush (f) P clears the file cache
frac (x) f takes the decimal part of the real variable
Freemem (P, I) P releases the variable length dynamic variable
GETDIR (DRV, path) P takes the current disk and current directory
GetMem (P, I) P, 1) P allocates variable length dynamic variables and stores the block address in a pointer variable
halt P immediately aborts program execution and returns to TP editor or DOS
hi (I) f returns the high byte of a variable
insert (s, D, POS) f inserts a substring at a certain position in a string
int f takes the integer part
ioresult f returns the result status of the last input / output operation
length (s) f takes the length of the string
ln (R) f calculates the natural logarithm
lo (I) F returns the low byte of a variable
maxaval f returns the maximum memory space
memavail f returns the number of available memory
MKDIR (path) P creates a subdirectory
move (s, D, Len) P fast transfer
New (P) P create a new dynamic variable
odd (x) f judge whether the value of a variable is odd
ofs (x) f side variable offset address
ord (CH) f find the ASCII value of a character
paramcount f DOS reference Number string length
paramstr (n) f DOS parameter string
pi f pI value
POS (STR1, STR2) f measures the starting position of another substring contained in a string
PRED (x) f finds the precursor
PTR (I) f pointer assignment
Random f returns random real numbers between 0 and 1
randomize P initializes random number generator
read / readln (F, x) P read in / input data
rename (F, STR) P rename an external file
Reset (f) P open the file and point the file pointer to start, and prepare to read data
rewrite (f) P open the file and point the file pointer to start, Prepare to write data
rmdir (path) P delete a subdirectory
round (x) f find the approximate number of real number
runerror P stop the program running
scrollto P scroll some contents of the window
seek (F, n) P locate the file pointer on the nth file component of the file f
seekrof (f) f locate the end of the file
seekroln (f) f locate the end of the line
SEG (n) f measure variable segment address
settextbuf (f) P associate the input / output buffer with a text file
sin x) F sine function
sizeof (x) f measure variable size
sptr f returns the current value of SP register
SQR (x) f square
sqrt (x) f square root
sseg f returns the current value of SS register
str (I, s) F converts an integer to a string
succ (x) f successor function
swap (x) f exchanges the high and low byte of a variable
TRUNC (x) f truncates the decimal part of the real number
truncate (f) P truncates the content after the current pointer of the file
upgrade (CH) F converts lowercase letters to uppercase letters
val (s, R, P) P converts a string to a numeric value
writeln (F, x) P output
DOS unit common processes and functions
getdate P returns the current system date
detftime P returns the last written date and time
gettime P returns the current system time
packtime P convert the system date and time, encapsulate it into a 4-byte long integer format
setDate P set the current system date
setftime P write the new system date and time, The last system date and time file written by the system is covered
setTime p to set the current system time
uppacktime p to convert the system date and time to the record format
diskfree f Return the available free space of the specified disk
disksize f return the total capacity of the specified disk
get / setverity P return / set the disk read / write mark in DOS state
fexpand f return the full name of the function name
fsearch f Find a file in a directory
fsplit f divides a file name into directory, file name Extension
findfirst P finds the first file name matching the given attribute in the current directory or specified directory
Author: Feiyun Wushan, reply to this speech at 16:49 on February 7, 2005
------------------------------------------------------------ --------------------
3 turbo Pascal basic function process and explanation
findnext P returns the next satisfying function
function identifier independent variable type meaning result type
ABS integer, real absolute value are the same as independent variable
arctan integer, real arctan real type
cos integer, real cosine real type
exp integer, real exponential real type
frac integer Real type fractional real type
int integral type, real type integer partial real type
ln integral type, real type natural logarithm real type
pi no independent variable PI real type
sin integral type, real type sine real type
SQR integral type, real type square with independent variable
sqrt integral type Real type square root real type
example: ABS (- 4) = 4, ABS (- 7.49) = 7.49, arctan (0) = 0.0
sin (PI) = 0.0, cos (PI) = - 1.0, frac (- 3.71) = - 0.71
int (- 3.71) = - 3.0, SQR (4) = 16, sqrt (4) = 2
2. Standard function
function identifier, self variable type, meaning result type
odd integer judgment
pred For example: odd (1000) = false PRED (2000) = 1999, succ (2000) = 2001
odd (3) = true PRED (# 39; x')= 39; w succ(' x')= 39; y'
3. Transformation function
function identifier independent variable type meaning result type
Chr byte independent variable corresponding character type
ord discrete type independent variable corresponding serial number long
round real rounding long
TRUNC real truncation rounding long
example: Chr (66) = 39; B' ord(' A')= 65 round (- 4.3) = - 5 TRUNC (2.88) = 2
4. Miscellaneous function
function identifier independent variable type meaning result type
random random real number between 0,1, The running Library of system TP, including commonly used standard functions and proceres, can be used to initialize the internal random number generator (long
upcase character type to make lowercase English letters into uppercase character type
downcase character type to make lowercase English letters into uppercase character type, It can be used directly in the program without the use statement
DOS has the functions of date, time, directory search, program execution, etc.
CRT has the functions of screen mode control, extended keyboard code, color, window, sound, etc.
printer supports print out operation
graph advanced graphics software package supports multiple graphics adapters
graph3 implements the graphic software package of tp3.0
turbo 3 is compatible with tp3.0 source program<
overlay realizes advanced coverage management
common processes and functions of system unit
ABS (x) f calculates absolute value of variable
addr (x) f measures variable address
append (f) P opens an existing text file, And point the file pointer to the end of the file to add the element
arctan (x) f anti tangent
assign (F, C) P assign the external file name represented by string c to the file variable f
assigned (x) P to test whether the pointer or variable in the program is empty
blockread (F, D, Num) P read type file
blockwrite (F, D, Num) P write typeless file
break P abort or end loop
chdir (path) P change current directory
Chr (x) f seek character with ASCII value of x
close (f) P close file
concat (S1, S2... S3) f string merging
continue P loop
(s, POS, len) f returns the substring of a string
cos (x) f cosine function
cseg f returns the current value of CS register
Dec (x) F X: = X-1
delete (s, POS, len), Len) P delete the substring of a string
dispose (P) P release a dynamic variable
DSEG f return the current value of DS register
EOF (f) f judge whether the file ends
eoln (f) f judge whether a line in the file type ends
erase (f) P delete an existing external file
Exit P process abort
exp (x) f exponential function with E as the base
current location of filepos (f) f file record
number of filesize (f) f file records
fillchar (D, len, Date) P fills the value or character
flush (f) P clears the file cache
frac (x) f takes the decimal part of the real variable
Freemem (P, I) P releases the variable length dynamic variable
GETDIR (DRV, path) P takes the current disk and current directory
GetMem (P, I) P, 1) P allocates variable length dynamic variables and stores the block address in a pointer variable
halt P immediately aborts program execution and returns to TP editor or DOS
hi (I) f returns the high byte of a variable
insert (s, D, POS) f inserts a substring at a certain position in a string
int f takes the integer part
ioresult f returns the result status of the last input / output operation
length (s) f takes the length of the string
ln (R) f calculates the natural logarithm
lo (I) F returns the low byte of a variable
maxaval f returns the maximum memory space
memavail f returns the number of available memory
MKDIR (path) P creates a subdirectory
move (s, D, Len) P fast transfer
New (P) P create a new dynamic variable
odd (x) f judge whether the value of a variable is odd
ofs (x) f side variable offset address
ord (CH) f find the ASCII value of a character
paramcount f DOS reference Number string length
paramstr (n) f DOS parameter string
pi f pI value
POS (STR1, STR2) f measures the starting position of another substring contained in a string
PRED (x) f finds the precursor
PTR (I) f pointer assignment
Random f returns random real numbers between 0 and 1
randomize P initializes random number generator
read / readln (F, x) P read in / input data
rename (F, STR) P rename an external file
Reset (f) P open the file and point the file pointer to start, and prepare to read data
rewrite (f) P open the file and point the file pointer to start, Prepare to write data
rmdir (path) P delete a subdirectory
round (x) f find the approximate number of real number
runerror P stop the program running
scrollto P scroll some contents of the window
seek (F, n) P locate the file pointer on the nth file component of the file f
seekrof (f) f locate the end of the file
seekroln (f) f locate the end of the line
SEG (n) f measure variable segment address
settextbuf (f) P associate the input / output buffer with a text file
sin x) F sine function
sizeof (x) f measure variable size
sptr f returns the current value of SP register
SQR (x) f square
sqrt (x) f square root
sseg f returns the current value of SS register
str (I, s) F converts an integer to a string
succ (x) f successor function
swap (x) f exchanges the high and low byte of a variable
TRUNC (x) f truncates the decimal part of the real number
truncate (f) P truncates the content after the current pointer of the file
upgrade (CH) F converts lowercase letters to uppercase letters
val (s, R, P) P converts a string to a numeric value
writeln (F, x) P output
DOS unit common processes and functions
getdate P returns the current system date
detftime P returns the last written date and time
gettime P returns the current system time
packtime P convert the system date and time, encapsulate it into a 4-byte long integer format
setDate P set the current system date
setftime P write the new system date and time, The last system date and time file written by the system is covered
setTime p to set the current system time
uppacktime p to convert the system date and time to the record format
diskfree f Return the available free space of the specified disk
disksize f return the total capacity of the specified disk
get / setverity P return / set the disk read / write mark in DOS state
fexpand f return the full name of the function name
fsearch f Find a file in a directory
fsplit f divides a file name into directory, file name Extension
findfirst P finds the first file name matching the given attribute in the current directory or specified directory
Author: Feiyun Wushan, reply to this speech at 16:49 on February 7, 2005
------------------------------------------------------------ --------------------
3 turbo Pascal basic function process and explanation
findnext P returns the next satisfying function
Hot content