📄 nativetypes.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
<TITLE>JIL native types prototypes</TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.4 (Win32)">
<META NAME="CREATED" CONTENT="20050212;22242853">
<META NAME="CHANGED" CONTENT="20050614;21391131">
</HEAD>
<BODY LANG="de-DE" DIR="LTR">
<H1><FONT FACE="Arial, sans-serif">stdlib functions</FONT></H1>
<PRE STYLE="margin-bottom: 0.5cm"><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">import </FONT></SPAN><SPAN STYLE="background: transparent"><FONT COLOR="#000000">stdlib;</FONT></SPAN></PRE><P>
<FONT FACE="Arial, sans-serif"><B>These are the prototypes of the
global functions the native type implements:</B></FONT></P>
<PRE><FONT COLOR="#008000"><SPAN STYLE="background: #ffffff">// console input / output</SPAN></FONT>
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function </FONT></SPAN>Print<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const var</FONT><FONT COLOR="#000000">& </FONT></SPAN>value<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function </FONT></SPAN>Printf<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>format, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const var</FONT><FONT COLOR="#000000">& </FONT></SPAN>value<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function string </FONT><FONT COLOR="#000000"> </FONT></SPAN>GetString<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<FONT COLOR="#008000"><SPAN STYLE="background: #ffffff">// random functions</SPAN></FONT>
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>Rand<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function long </FONT><FONT COLOR="#000000"> </FONT></SPAN>Rand<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>min, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>max<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function </FONT></SPAN>RandInit<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function </FONT></SPAN>RandSeed<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">& </FONT></SPAN>seed<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<FONT COLOR="#008000"><SPAN STYLE="background: #ffffff">// conversion functions</SPAN></FONT>
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function long </FONT><FONT COLOR="#000000"> </FONT></SPAN>Atol<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>text<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>Atof<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>text<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function string </FONT><FONT COLOR="#000000"> </FONT></SPAN>Ltoa<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>value<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function string </FONT><FONT COLOR="#000000"> </FONT></SPAN>Ftoa<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">& </FONT></SPAN>value<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function string </FONT><FONT COLOR="#000000"> </FONT></SPAN>Ctoa<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>ascii<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function string </FONT><FONT COLOR="#000000"> </FONT></SPAN>ToString<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const var</FONT><FONT COLOR="#000000">& </FONT></SPAN>v<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function string </FONT><FONT COLOR="#000000"> </FONT></SPAN>Format<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const string</FONT><FONT COLOR="#000000">& </FONT></SPAN>format, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const array</FONT><FONT COLOR="#000000">& args</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<FONT COLOR="#008000"><SPAN STYLE="background: #ffffff">// misc</SPAN></FONT>
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function </FONT></SPAN>Sleep<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">& </FONT></SPAN>millisec<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function long </FONT><FONT COLOR="#000000"> </FONT></SPAN>GetTicks<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">()</FONT></SPAN>;</PRE><H1>
<FONT FACE="Arial, sans-serif">math functions</FONT></H1>
<PRE STYLE="margin-bottom: 0.5cm"><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">import </FONT></SPAN><SPAN STYLE="background: transparent"><FONT COLOR="#000000">math;</FONT></SPAN></PRE><P>
<FONT FACE="Arial, sans-serif"><B>These are the prototypes of the
global functions the native type implements:</B></FONT></P>
<PRE><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function long </FONT><FONT COLOR="#000000"> </FONT></SPAN>abs<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>acos<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>asin<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>atan<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>atan2<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT></SPAN>, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>cos<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>cosh<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>exp<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>fabs<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>log<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>log10<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>pow<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT></SPAN>, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>sin<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>sinh<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>tan<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>tanh<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>sqrt<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>ceil<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>floor<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>int<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>frac<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> </FONT></SPAN>sgn<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function long </FONT><FONT COLOR="#000000"> </FONT></SPAN>min<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">&</FONT></SPAN>, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function long </FONT><FONT COLOR="#000000"> </FONT></SPAN>max<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">&</FONT></SPAN>, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const long</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> f</FONT></SPAN>min<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT></SPAN>, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;
<SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">function float </FONT><FONT COLOR="#000000"> f</FONT></SPAN>max<SPAN STYLE="background: #ffffff"><FONT COLOR="#ff0000">(</FONT><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT></SPAN>, <SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">const float</FONT><FONT COLOR="#000000">&</FONT><FONT COLOR="#ff0000">)</FONT></SPAN>;</PRE><H1>
<FONT FACE="Arial, sans-serif">File methods</FONT></H1>
<PRE STYLE="margin-bottom: 0.5cm"><SPAN STYLE="background: #ffffff"><FONT COLOR="#0000ff">import </FONT></SPAN><SPAN STYLE="background: transparent"><FONT COLOR="#000000">File;</FONT></SPAN></PRE><P>
<FONT FACE="Arial, sans-serif"><B>These are the prototypes of the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -