Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Extras » Apple][e/PD/BOB/ARMBOB/doc/!BobDoc/Glossary
Apple][e/PD/BOB/ARMBOB/doc/!BobDoc/Glossary
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Extras |
Filename: | Apple][e/PD/BOB/ARMBOB/doc/!BobDoc/Glossary |
Read OK: | ✔ |
File size: | 7875 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
<TITLE>Glossary for ArmBob 2.0</TITLE> <H2>Glossary for ArmBob 2.0</H2> The following words denote built in functions, values or operators. They do not include <A HREF="synonyms">predefined constants</A>. <P> <A HREF="#pling"> <CODE>!</CODE></A> , <A HREF="#notequal"> <CODE>!=</CODE></A> , <A HREF="#dollar"> <CODE>$</CODE></A> , <A HREF="#dollar2"> <CODE>$$</CODE></A> , <A HREF="#percent"> <CODE>%</CODE></A> , <A HREF="#percentequal"> <CODE>%=</CODE></A> , <A HREF="#and"> <CODE>&</CODE></A> , <A HREF="#and2"> <CODE>&&</CODE></A> , <A HREF="#andequal"> <CODE>&=</CODE></A> , <A HREF="#and2equal"> <CODE>&&=</CODE></A> , <A HREF="#times"> <CODE>*</CODE></A> , <A HREF="#timesequal"> <CODE>*=</CODE></A> , <A HREF="#plus"> <CODE>+</CODE></A> , <A HREF="#plus2"> <CODE>++</CODE></A> , <A HREF="#plusequal"> <CODE>+=</CODE></A> , <A HREF="#minus"> <CODE>-</CODE></A> , <A HREF="#minus2"> <CODE>--</CODE></A> , <A HREF="#minusequal"> <CODE>-=</CODE></A> , <A HREF="#arrow">-><CODE></CODE></A> , <A HREF="#divide"> <CODE>/</CODE></A> , <A HREF="#divideequal"> <CODE>/=</CODE></A> , <A HREF="#colon"><CODE>:</CODE></A> , <A HREF="#colon2"><CODE>::</CODE></A> , <A HREF="#lessthan"> <CODE><</CODE></A> , <A HREF="#lessthan2"> <CODE><<</CODE></A> , <A HREF="#lessthanequal"> <CODE><=</CODE></A> , <A HREF="#lessthan2equal"> <CODE><<=</CODE></A> , <A HREF="#assign"> <CODE>=</CODE></A> , <A HREF="#equal"> <CODE>==</CODE></A> , <A HREF="#greater"> <CODE>></CODE></A> , <A HREF="#greaterequal"> <CODE>>=</CODE></A> , <A HREF="#greater2"> <CODE>>></CODE></A> , <A HREF="#greater2equal"> <CODE>>>=</CODE></A> , <A HREF="#query"> <CODE>?</CODE></A> , <A HREF="#hat"> <CODE>^</CODE></A> , <A HREF="#hatequal"> <CODE>^=</CODE></A> , <A HREF="#at"> <CODE>@</CODE></A> , <A HREF="#acos"> <CODE>acos</CODE></A> , <A HREF="#asin"> <CODE>asin</CODE></A> , <A HREF="#atan"> <CODE>atan</CODE></A> , <A HREF="#break"> <CODE>break</CODE></A> , <A HREF="#call"> <CODE>call</CODE></A> , <A HREF="#case"> <CODE>case</CODE></A> , <A HREF="#class"> <CODE>class</CODE></A> , <A HREF="#continue"> <CODE>continue</CODE></A> , <A HREF="#cos"> <CODE>cos</CODE></A> , <A HREF="#default"> <CODE>default</CODE></A> , <A HREF="#do"> <CODE>do</CODE></A> , <A HREF="#else"> <CODE>else</CODE></A> , <A HREF="#enum"> <CODE>enum</CODE></A> , <A HREF="#exp"> <CODE>exp</CODE></A> , <A HREF="#fclose"> <CODE>fclose</CODE></A> , <A HREF="#floor"> <CODE>floor</CODE></A> , <A HREF="#fopen"> <CODE>fopen</CODE></A> , <A HREF="#for"> <CODE>for</CODE></A> , <A HREF="#gc"> <CODE>gc</CODE></A> , <A HREF="#getarg"> <CODE>getarg</CODE></A> , <A HREF="#getc"> <CODE>getc</CODE></A> , <A HREF="#if"> <CODE>if</CODE></A> , <A HREF="#in"> <CODE>in</CODE></A> , <A HREF="#input"> <CODE>input</CODE></A> , <A HREF="#local"> <CODE>local</CODE></A> , <A HREF="#log"> <CODE>log</CODE></A> , <A HREF="#new"> <CODE>new</CODE></A> , <A HREF="#newstring"> <CODE>newstring</CODE></A> , <A HREF="#newvector"> <CODE>newvector</CODE></A> , <A HREF="#nil"> <CODE>nil</CODE></A> , <A HREF="#oscli"> <CODE>oscli</CODE></A> , <A HREF="#pi"> <CODE>pi</CODE></A> , <A HREF="#print"> <CODE>print</CODE></A> , <A HREF="#put"> <CODE>put</CODE></A> , <A HREF="#putc"> <CODE>putc</CODE></A> , <A HREF="#quit"> <CODE>quit</CODE></A> , <A HREF="#repeat"> <CODE>repeat</CODE></A> , <A HREF="#rnd"> <CODE>rnd</CODE></A> , <A HREF="#return"> <CODE>return</CODE></A> , <A HREF="#seed"> <CODE>seed</CODE></A> , <A HREF="#sin"> <CODE>sin</CODE></A> , <A HREF="#sizeof"> <CODE>sizeof</CODE></A> , <A HREF="#sqrt"> <CODE>sqrt</CODE></A> , <A HREF="#start_task"> <CODE>start_task</CODE></A> , <A HREF="#static"> <CODE>static</CODE></A> , <A HREF="#stderr"> <CODE>stderr</CODE></A> , <A HREF="#stdin"> <CODE>stdin</CODE></A> , <A HREF="#stdout"> <CODE>stdout</CODE></A> , <A HREF="#swi"> <CODE>swi</CODE></A> , <A HREF="#switch"> <CODE>switch</CODE></A> , <A HREF="#sysvar"> <CODE>sysvar</CODE></A> , <A HREF="#tan"> <CODE>tan</CODE></A> , <A HREF="#this"> <CODE>this</CODE></A> , <A HREF="#time"> <CODE>time</CODE></A> , <A HREF="#typeof"> <CODE>typeof</CODE></A> , <A HREF="#until"> <CODE>until</CODE></A> , <A HREF="#val"> <CODE>val</CODE></A> , <A HREF="#vector"> <CODE>vector</CODE></A> , <A HREF="#wimp_closedown"> <CODE>wimp_closedown</CODE></A> , <A HREF="#wimp_init"> <CODE>wimp_init</CODE></A> , <A HREF="#wimp_report"> <CODE>wimp_report</CODE></A> , <A HREF="#while"> <CODE>while</CODE></A> , <A HREF="#or"> <CODE>|</CODE></A> , <A HREF="#orequal"> <CODE>|=</CODE></A> , <A HREF="#or2"> <CODE>||</CODE></A> , <A HREF="#or2equal"> <CODE>||=</CODE></A> , <A HREF="#tilde"> <CODE>~</CODE></A> , <A HREF="#backquote"> <CODE>`</CODE></A> , <A HREF="#backquote2"> <CODE>``</CODE></A> , <A HREF="#pound"> <CODE>£</CODE></A> , <A HREF="#pound2"> <CODE>££</CODE></A>. <HR> <DL> <DT><A NAME="pling"><CODE>!</CODE></A> <DD><CODE>!x </CODE> Returns 0 if <CODE>x </CODE> is nonzero and 1 otherwise. <CODE>x </CODE> must be an integer. <DT><A NAME="notequal"><CODE>!=</CODE></A> <DD><CODE>x != y </CODE> Both <CODE>x, y </CODE> must be integers, strings or reals. It returns 1 if they are different and 0 if they are equal. <DT><A NAME="dollar"><CODE>$</CODE></A> <DD><CODE>$(x) </CODE> is the string stored at address <CODE>x </CODE>. The string is terminated by any character with ASCII code less than 32. The address <CODE>x </CODE> should be an integer divisible by 4. <DT><A NAME="dollar2"><CODE>$$</CODE></A> <DD><CODE>$$(x,s) </CODE> returns the value of the string <CODE>s </CODE> and places <CODE>s </CODE> at address <CODE>x </CODE>. <DD>E.g. <CODE>$$(x,$$(y,s)); </CODE> stores <CODE>s </CODE> at both <CODE>x </CODE> and <CODE>y </CODE>. <DT><A NAME="percent"><CODE>%</CODE></A> <DD><CODE>x % y </CODE> is remainder for dividing the integer <CODE>x </CODE> by the integer <CODE>y </CODE>. <DT><A NAME="percentequal"><CODE>%=</CODE></A> <DD><CODE>x %= y </CODE> Assign <CODE>x%y </CODE> to <CODE>x </CODE>, and then return <CODE>x </CODE>. <DT><A NAME="and"><CODE>&</CODE></A> <DD><CODE>x & y </CODE> returns the bitwise XOR of <CODE>x </CODE> and <CODE>y </CODE>. Both <CODE>x,y </CODE> must be integers. <DT><A NAME="and2"><CODE>&&</CODE></A> <DD><CODE>x && y </CODE> If <CODE>x </CODE> is zero the expression returns 0 without evaluating <CODE>y </CODE>. Otherwise it returns 0 if <CODE>y </CODE> is zero and 1 otherwise. Both <CODE>x,y </CODE> must be integers. <DT><A NAME="andequal"><CODE>&=</CODE></A> <DD><CODE>x &= y </CODE> Assign <CODE>x&y </CODE> to <CODE>x </CODE> and then return <CODE>x </CODE>. Both <CODE>x,y </CODE> must be integers. <DT><A NAME="and2equal"><CODE>&&=</CODE></A> <DD><CODE>x &&= y </CODE> Assign <CODE>x&&y </CODE> to <CODE>x </CODE> and then return <CODE>x </CODE>. Both <CODE>x,y </CODE> must be integers. <DT><A NAME="times"><CODE>*</CODE></A> <DD><CODE>x * y</CODE> The values <CODE>x, y </CODE> are reals or integers. Their product is returned. The type of the result is real if either <CODE>x </CODE> or <CODE>y </CODE> is a real and integer otherwise. <DT><A NAME="timesequal"><CODE>*=</CODE></A> <DD><CODE>x *= y </CODE> Assign <CODE>x*y </CODE> to <CODE>x </CODE> and then return <CODE>x </CODE>. <DT><A NAME="plus"><CODE>+</CODE></A> <DD><CODE>x + y </CODE> If <CODE>x, y </CODE> are both integers or both reals it returns their sum. If <CODE>x, y </CODE> are both strings it returns their concatenation. If either <CODE>x </CODE> or <CODE>y </CODE> is a string and the other argument is an integer, the other argument is converted to the string consisting of the single character given by the ASCII code of the bottom 8 bits and the result is the concatenation of the two strings. <DT><A NAME="plus2"><CODE>++</CODE></A> <DD><CODE>x++ </CODE>�Evaluate <CODE>x </CODE> in the current expression, and then assign <CODE>x+1 </CODE> to <CODE>x </CODE>. <DD><CODE>++x </CODE> Assign <CODE>x+1 </CODE> to <CODE>x </CODE> before further evaluation. <DT><A NAME="plusequal"><CODE>+=</CODE></A> <DD><CODE>x += y </CODE> Assign <CODE>x+y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="minus"><CODE>-</CODE></A> <DD><CODE>x - y </CODE> The values <CODE>x, y </CODE> are both integers or both reals. Their difference is returned. <DT><A NAME="minus2"><CODE>--</CODE></A> <DD><CODE>x-- </CODE>�Evaluate <CODE>x </CODE> in the current expression, and then assign <CODE>x-1 </CODE> to <CODE>x </CODE>. <DD><CODE>--x </CODE> Assign <CODE>x-1 </CODE> to <CODE>x </CODE> before further evaluation. <DT><A NAME="minusequal"><CODE>-=</CODE></A> <DD><CODE>x -= y </CODE> Assign <CODE>x-y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="divide"></A><CODE>/</CODE></A> <DD></A><CODE>x / y </CODE></A> If <CODE>x </CODE> is an integer, then so must <CODE>y </CODE> be and an integer and their quotient is returned. If <CODE>x </CODE> is real <CODE>y </CODE> may be either an integer or a real and the real quotient is returned. <DT><A NAME="divideequal"><CODE>/=</CODE></A> <DD><CODE>x /= y </CODE> Assign <CODE>x/y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="arrow"><CODE>-></CODE></A> <DD><CODE>myinstance->mymethod </CODE> is the function obtained when method <CODE>mymethod </CODE> is instantiated for the instance <CODE>myinstance </CODE>. <DD> E.g. <CODE>print("The x-coordinate of vertex is ", vertex->x(),"\n");</CODE> <DD>Each instance object of a class has its own private copy of the class's data, which can only be updated or accessed using a method. <DT><A NAME="colon"><CODE>:</CODE></A> <DD><CODE>c?yes:no </CODE> see <A HREF="#query> ?</A>. <DD><CODE>class child:parent { ... } </CODE> declares <CODE> child </CODE> as a subclass of <CODE> parent </CODE>. Instance objects of <CODE> child </CODE> have access to the methods of <CODE> parent </CODE>. <DT><A NAME="colon2"><CODE>::</CODE></A> <DD><CODE>myclass::mymethod() </CODE> declares <CODE>mymethod()</CODE> to be a method for the <A HREF="#class">class </A> <CODE>myclass</CODE>. <DT><A NAME="lessthan"><CODE><</CODE></A> <DD><CODE>x < y </CODE> The values <CODE>x, y </CODE> are both integers, strings or reals. It returns 1 if <CODE>x </CODE> strictly precedes <CODE>y </CODE>, otherwise it returns 0. <DT><A NAME="lessthan2"><CODE><<</CODE></A> <DD><CODE>x << y </CODE> If <CODE>x, y </CODE> are both integers it returns <CODE>x </CODE> shifted left by <CODE>y </CODE> bits. If <CODE>x </CODE> is an iostream and <CODE>y </CODE> a string, it outputs <CODE>y </CODE> to <CODE>x </CODE> and returns the result <CODE>x </CODE>. <DT><A NAME="lessthanequal"><CODE><=</CODE></A> <DD><CODE>x <= y </CODE> The values <CODE>x, y </CODE> are both integers, strings or reals. It returns 1 if <CODE>x </CODE> precedes or equals <CODE>y </CODE>, otherwise it returns 0. <DT><A NAME="lessthan2equal"><CODE><<=</CODE></A> <DD><CODE>x <<= y </CODE> Assign <CODE>x<<y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="assign"><CODE>=</CODE></A> <DD><CODE>x = y </CODE> Assign <CODE>y </CODE> to <CODE>x </CODE> and return that value. <DT><A NAME="equal"><CODE>==</CODE></A> <DD><CODE>x == y </CODE> The values <CODE>x, y </CODE> are both integers, strings or reals. It returns 0 if they are different and 1 if they are equal. <DT><A NAME="greater"><CODE>></CODE></A> <DD><CODE>x > y </CODE> The values <CODE>x, y </CODE> are both integers, strings or reals. It returns 1 if if <CODE>y </CODE> strictly precedes <CODE>x </CODE>, otherwise it returns 0. <DT><A NAME="greaterequal"><CODE>>=</CODE></A> <DD><CODE>x >= y </CODE> The values <CODE>x, y </CODE> are both integers, strings or reals. It returns 1 if if <CODE>y </CODE> precedes or equals <CODE>x </CODE>, otherwise it returns 0. <DT><A NAME="greater2"><CODE>>></CODE></A> <DD><CODE>x >> y </CODE> The values <CODE>x, y </CODE> are both integers. It returns <CODE>x </CODE> arithmetically shifted right by <CODE>y </CODE> bits. <DT><A NAME="greater2equal"><CODE>>>=</CODE></A> <DD><CODE>x >>= y </CODE> Assign <CODE>x>>y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="query"><CODE>?</CODE></A> <DD><CODE>c?yes:no </CODE> The value <CODE>c </CODE> an integer. If it is nonzero, the expression evaluates and returns the value of <CODE>yes </CODE> (<CODE>no </CODE> is not evaluated), otherwise it evaluates and returns the value of <CODE>no </CODE> (<CODE>yes </CODE> is not evaluated). <DT><A NAME="hat"><CODE>^</CODE></A> <DD><CODE>x ^ y </CODE> Both <CODE>x, y </CODE> are integers. Returns the bitwise XOR of <CODE>x </CODE> and <CODE>y </CODE>. <DT><A NAME="hatequal"><CODE>^=</CODE></A> <DD><CODE>x ^= y </CODE> Assign <CODE>x^y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="or"><CODE>|</CODE></A> <DD><CODE>x | y </CODE> Both <CODE>x, y </CODE> are integers. Returns the bitwise OR of <CODE>x </CODE> and <CODE>y </CODE>. <DT><A NAME="orequal"><CODE>|=</CODE></A> <DD><CODE>x |= y </CODE> Assign <CODE>x|y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="or2"><CODE>||</CODE></A> <DD><CODE>x || y </CODE> Both <CODE>x, y </CODE> are integers. If <CODE>x</CODE> is nonzero, the expression evaluates to 1, without evaluating <CODE>y</CODE>. Otherwise it returns 0 if <CODE>y</CODE> is zero and 1 otherwise. <DT><A NAME="or2equal"><CODE>||=</CODE></A> <DD><CODE>x ||= y </CODE> Assign <CODE>x||y </CODE> to <CODE>x </CODE>, and return <CODE>x </CODE>. <DT><A NAME="tilde"><CODE>~</CODE></A> <DD><CODE>~x </CODE> returns the bitwise NOT of the integer <CODE>x </CODE>. <DT><A NAME="at"><CODE>@</CODE></A> <DD><CODE>@(s) </CODE> is the address of the first character of the string <CODE>s</CODE>. This address is divisible by 4. Strings are stored as a consecutive array of bytes. <DD>E.g. <CODE>@s = @(s = "hello");</CODE> <DT><A NAME="acos"><CODE>acos</CODE></A> <DD><CODE>acos(x) </CODE> is arc-cos of the real <CODE>x</CODE>. <DT><A NAME="asin"><CODE>asin</CODE></A> <DD><CODE>asin(x) </CODE> is arc-sine of the real <CODE>x</CODE>. <DT><A NAME="atan"><CODE>atan</CODE></A> <DD><CODE>atan(x) </CODE> is arc-tangent of the real <CODE>x</CODE>. <DT><A NAME="break"><CODE>break</CODE></A> <DD><CODE>break; </CODE> Jump out of the current structure. It only makes sense within a <CODE>switch</CODE>, <CODE>do</CODE>/ <CODE>repeat</CODE>, <CODE>for</CODE> or <CODE>while</CODE> structure. <DT><A NAME="call"><CODE>call</CODE></A> <DD><CODE>call(adr,r0); </CODE> Call machine code at the address <CODE>adr</CODE> with register R0 holding the address <CODE>r0</CODE>. The same calling conventions should be used as for C. So the code should return with MOV PC,R14 and should preserve registers R10 - R14. The address <CODE>r0</CODE> should be used for a buffer for passing data in and out. <DT><A NAME="case"><CODE>case</CODE></A> <DD><CODE>case x: </CODE> Part of the <A HREF="#switch"><CODE>switch</CODE></A> construct. <DT><A NAME="class"><CODE>class</CODE></A> <DD><CODE>class </CODE> Keyword introducing a class definition. Class definitions can only appear at the top level. That is to say, they cannot appear inside a class definition or a function definition. Class definitions must precede the definitions of any of their instance objects. <DD> E.g. <CODE>class point { q; /* a vector of coordinates */ }</CODE> <DD> We say that the class <CODE>point</CODE> has the vector <CODE>q</CODE> as its <EM>data</EM>. <EM>Methods</EM> for a class can be declared inside the class's definition but this is optional. They must be defined outside the class definition. For example, to add a method to <CODE>point</CODE> to read its first coordinate, we could have <DD> <CODE>point::x() { return q[0]; }</CODE> <DD> Method definitions are exactly like function definitions except that the class name, followed by <CODE>::</CODE>, prefixes the method name. The same method name can be used in different classes. That is to say, data and method names are local to a class. The variable <A HREF="#this"><CODE>this</CODE></A> can be used in a method to refer to the instance object using the method. <DT><A NAME="continue"><CODE>continue</CODE></A> <DD><CODE>continue; </CODE> Start the next iteration of the smallest enclosing <CODE>do</CODE>/<CODE>repeat, for</CODE> or <CODE>while</CODE> structure. <DT><A NAME="cos"><CODE>cos</CODE></A> <DD><CODE>cos(x) </CODE> is cosine of the real <CODE>x</CODE>. <DT><A NAME="default"><CODE>default</CODE></A> <DD><CODE>default: </CODE> the default alternative in the <A HREF="#switch"><CODE>switch</CODE></A> structure. <DT><A NAME="do"><CODE>do</CODE></A> <DD><CODE>do ... until/while (x); </CODE> Looping construct where the body is executed at least once. <DT><A NAME="else"><CODE>else</CODE></A> <DD><CODE>else </CODE> Optional part of <A HREF="#if"><CODE>if</CODE></A> construct. <DT><A NAME="enum"><CODE>enum</CODE></A> <DD><CODE>enum { x1, ... , xn } </CODE> This returns the integer <CODE>n</CODE> and assigns the values 0, 1, ... (n-1) to the n variables <CODE> x1, ... xn </CODE> in order. It is useful for hiding explicit indexing. <DT><A NAME="exp"><CODE>exp</CODE></A> <DD><CODE>exp(x) </CODE> is exponential of the real <CODE> x </CODE>. <DT><A NAME="fclose"><CODE>fclose</CODE></A> <DD><CODE>fclose(fp); </CODE> closes the iostream <CODE> fp </CODE> and returns <CODE> nil </CODE>. <DT><A NAME="floor"><CODE>floor</CODE></A> <DD><CODE>floor(x) </CODE> is the integer part of the real value <CODE> x </CODE>. <DT><A NAME="fopen"><CODE>fopen</CODE></A> <DD><CODE>fopen(fname,mode) </CODE> tries to open a new iostream connected to the file named by the string <CODE>fname</CODE>. If unsuccessful, returns <CODE>nil</CODE>, and otherwise returns the iostream itself. The mode variable can take the values "r" (read), "w" (write) and "a" (append). <DT><A NAME="for"><CODE>for</CODE></A> <DD><CODE>for(start;terminate;action) .... </CODE> iteration construct. <DD> E.g. <CODE><PRE> for(i = 0; i <; sizeof(v); i++) print("v[",i,"] = ",v[i],"\n"); </PRE></CODE> <DT><A NAME="gc"><CODE>gc</CODE></A> <DD><CODE>gc(); </CODE> forces garbage collection. The value <CODE>nil</CODE> is returned. <DT><A NAME="getarg"><CODE>getarg</CODE></A> <DD><CODE>getarg(i) </CODE> returns the <CODE>i</CODE>-th argument on the command line as a string, if there is one, and <CODE>nil</CODE> if there is none. The 0-th argument is the command itself (the program's pathname). <DD> E.g. <CODE><PRE> for(i = 1; typeof(arg = getarg(i)); i++) process(arg);</PRE></CODE> <DT><A NAME="getc"><CODE>getc</CODE></A> <DD><CODE>getc(fp) </CODE> returns either the next byte from the iostream <CODE>fp</CODE> or <CODE>EOF</CODE>. <DT><A NAME="if"><CODE>if</CODE></A> <DD><CODE>if (condition) ... else ... </CODE> conditional construct. A condition is regarded as false if it is either the integer 0 or the value <CODE>nil</CODE>. Other values count as true. <DT><A NAME="in"><CODE>in</CODE></A> <DD><CODE>in buffer put { x1; .... xn ;} </CODE> structure. <CODE>buffer</CODE> is either a string or an integer address. The values <CODE>x1 ... xn</CODE> are strings or integers. <DT><A NAME="input"><CODE>input</CODE></A> <DD><CODE>input() </CODE> Returns an input string. Leading spaces are not removed. To input a number use the function <A HREF="#val"><CODE>val</CODE></A>. <DD>E.g. <CODE>n = val(input());</CODE> <DT><A NAME="local"><CODE>local</CODE></A> <DD><CODE>local x1, ... xn ;</CODE> declares <CODE>x1, ... ,xn</CODE> to be local variables. This statement must precede all others in the body of a function or method definition. <DT><A NAME="log"><CODE>log</CODE></A> <DD><CODE>log(x) </CODE> is natural logarithm of the real <CODE>x</CODE>. <DT><A NAME="new"><CODE>new</CODE></A> <DD><CODE>new </CODE> is used to create instance objects of classes. <DD> E.g. for a class foo <CODE>x = new foo( ... );</CODE> <DT><A NAME="newstring"><CODE>newstring</CODE></A> <DD><CODE>newstring(n) </CODE> Allocates an array of <CODE>n</CODE> bytes in the heap, starting on a word boundary, initializes them to zero, and returns the string which has this array as its value. <DT><A NAME="newvector"><CODE>newvector</CODE></A> <DD><CODE>newvector(n) </CODE> Allocates space in the heap for an <CODE>n</CODE>-component vector, whose values are all <CODE>nil</CODE>, and returns this vector. <DD>E.g.<CODE><PRE> loopy = newvector(2); loopy[0] = loopy; </PRE></CODE> <DT><A NAME="nil"><CODE>nil</CODE></A> <DD><CODE>nil </CODE> the single value of type NIL. This is used to represent undefined quantities. <DT><A NAME="oscli"><CODE>oscli</CODE></A> <DD><CODE>oscli(s) </CODE> Sends a string s to the command line interpreter. The value <CODE>nil</CODE> is returned. <DT><A NAME="pi"><CODE>pi</CODE></A> <DD><CODE>pi </CODE> is an approximation to the ratio of the circumference of a circle to its diameter. <DT><A NAME="print"><CODE>print</CODE></A> <DD><CODE>print(x1, ... ,xn); </CODE> Print the items <CODE>x1, .... xn</CODE> and return <CODE>nil</CODE>. Newlines are not automatically appended. The digrams <CODE>\n, \t, \\</CODE> can be used in strings for newline, tab and \, respectively. <CODE>print</CODE> should not be used in a wimp program. <DT><A NAME="put"><CODE>put</CODE></A> <DD><CODE>in buffer put {x1; .... xn; } </CODE> See <A HREF="#in"><CODE>in</CODE></A>. <DT><A NAME="putc"><CODE>putc</CODE></A> <DD><CODE>putc(ch,fp); </CODE> Writes the character ch to the iostream <CODE>fp</CODE>. Returns <CODE>nil</CODE>. <DT><A NAME="quit"><CODE>quit</CODE></A> <DD><CODE>quit(s); </CODE> Causes the program to exit with a message <CODE>s</CODE> to <CODE>stderr</CODE> and returns <CODE>nil</CODE>. In wimp programs <CODE>wimp_closedown</CODE> is called. <DT><A NAME="repeat"><CODE>repeat</CODE></A> <DD><CODE>repeat </CODE> is a synonym for <A HREF="#do"><CODE>do</CODE></A>. <DT><A NAME="rnd"><CODE>rnd</CODE></A> <DD><CODE>rnd() </CODE> returns a random positive integer. <DT><A NAME="return"><CODE>return</CODE></A> <DD><CODE>return x; </CODE> returns <CODE>x </CODE> as the value of a function or method. <CODE>return; </CODE> is equivalent to <CODE>return nil; </CODE>. <DT><A NAME="seed"><CODE>seed</CODE></A> <DD><CODE>seed(n) ;</CODE> Seeds the random number generator with the integer <CODE>n </CODE> and returns <CODE>nil </CODE>. <DT><A NAME="sin"><CODE>sin</CODE></A> <DD><CODE>sin(x) </CODE> is sine of the real <CODE>x </CODE>. <DT><A NAME="sizeof"><CODE>sizeof</CODE></A> <DD><CODE>sizeof(s) </CODE> returns the number of characters in a string <CODE>s </CODE>, or the number of components of a vector <CODE>s </CODE>, as an integer. <DT><A NAME="sqrt"><CODE>sqrt</CODE></A> <DD><CODE>sqrt(x) </CODE> is square-root of the real <CODE>x </CODE>. <DT><A NAME="start_task"><CODE>start_task</CODE></A> <DD><CODE>start_task(s) </CODE> takes a command in the string <CODE>s </CODE> to start up a child task, and returns its task handle. This works both from <A HREF="Run#BobFile>BobFiles </A> (i.e. from a command window) or from <A HREF="Run#BobTask>BobTasks</A> (i.e. from a taskwindow). This function should only be used outside wimp programs (i.e. before <A HREF="#wimp_init><CODE>wimp_init</CODE></A> or after <A HREF="#wimp_closedown><CODE>wimp_closedown </CODE></A>. There are other means of starting a child task from within a wimp program. <DT><A NAME="static"><CODE>static</CODE></A> <DD><CODE>static </CODE> prefix for the declaration of static data and methods in a class definition. Such data and methods are shared by all instances of a class. Static methods may not use the variable <A HREF="#this"><CODE>this </CODE></A>. A typical use of static variables would be a variable to count the number of instance objects of a certain kind. <DD> E.g.<CODE><PRE> class foo { static total; .......... } foo::foo(...) { if (typeof(total)) total += 1; else total = 1; ............... } foo::current_number() { return total; } </PRE></CODE> <DT><A NAME="stderr"><CODE>stderr</CODE></A> <DD><CODE>stderr </CODE> is a built-in iostream. <DT><A NAME="stdin"><CODE>stdin</CODE></A> <DD><CODE>stdin </CODE> is a built-in iostream. <DT><A NAME="stdout"><CODE>stdout</CODE></A> <DD><CODE>stdout </CODE> is a built-in iostream. <DT><A NAME="swi"><CODE>swi</CODE></A> <DD><CODE>swi(x,r) </CODE> calls SWI <CODE>x </CODE>, given either as a string or number, with registers R0-R7 preloaded with the first 8 components of the vector <CODE>r </CODE>, and returns <CODE>nil </CODE> with the components of <CODE>r </CODE> updated to the returned values in registers R0-R7. Note that even though a SWI may pass no values in registers, it is necessary for the second argument to be a vector with at least 8 components. <DD>E.g.<CODE><PRE> event_process(maskptr,buffer,action,user) { local r, respond, go_on; r = newvector(8); go_on = TRUE; while(go_on) { r[0] = maskptr[0]; r[1] = buffer; swi("Wimp_Poll",r); go_on = (typeof(respond = action[r[0]]) == BYTECODE)?respond(buffer,user,maskptr):TRUE; } wimp_closedown(); } </PRE></CODE> <DT><A NAME="switch"><CODE>switch</CODE></A> <DD><CODE>switch (c) { .... } </CODE> is the multibranch conditional structure. <DT><A NAME="sysvar"><CODE>sysvar</CODE></A> <DD><CODE>sysvar(s) </CODE> Returns the string value of the string system variable <CODE>s </CODE> or <CODE>nil </CODE> if the variable is unset. <DD> E.g. <CODE>print(sysvar("Bob$Path"),"\n");</CODE> <DT><A NAME="tan"><CODE>tan</CODE></A> <DD><CODE>tan(x) </CODE> is tangent of the real <CODE>x </CODE>. <DT><A NAME="this"><CODE>this</CODE></A> <DD><CODE>this </CODE> is a variable that can be used in a method to refer to the instance object using the method. <DD>E.g.<CODE><PRE> foo::methodA( .. ) { .... this->methodB(...) ... } </PRE></CODE> <DT><A NAME="time"><CODE>time</CODE></A> <DD><CODE>time() </CODE> Returns the first 32 bits of the time in centiseconds since the beginning of the century. <DT><A NAME="typeof"><CODE>typeof</CODE></A> <DD><CODE>typeof(x) </CODE> returns the integer code describing the type of <CODE>x </CODE>. The type of <CODE>nil </CODE> is 0, and all other values return a nonzero value. This is useful for coping with undefined vector components. <DD> E.g. <CODE> a = typeof(a)?a:0;</CODE> <DT><A NAME="until"><CODE>until</CODE></A> <DD><CODE>until c </CODE> terminating condition for <CODE>do/repeat </CODE> structure. <DT><A NAME="val"><CODE>val</CODE></A> <DD><CODE>val(s) </CODE> Converts as many characters of the string <CODE>s </CODE> to a number as it can. Decimal or hexadecimal numbers (prefixed by &) are recognized. Note that the hexadecimal digits <CODE>a,b,c,d,e,f </CODE> are in lower case. Reals are distinguished by a decimal point. <DT><A NAME="vector"><CODE>vector</CODE></A> <DD><CODE>vector {expr1; ... exprn; } </CODE> returns a new vector with components <CODE>expr1 ... exprn </CODE>. There must be at least one component. <DT><A NAME="wimp_closedown"><CODE>wimp_closedown</CODE></A> <DD><CODE>wimp_closedown() </CODE> Programs running as wimp tasks must use this function before terminating. It returns <CODE>nil </CODE>. <DT><A NAME="wimp_init"><CODE>wimp_init</CODE></A> <DD><CODE>wimp_init(version,name,mesg_list) </CODE> registers a task with the window manager. <CODE>version </CODE> is 100 times the version number of RISC OS being used, <CODE>name </CODE> is the name of the wimp task, and <CODE>mesg_list </CODE> is a buffer, given as a string or its integer address, containing the messages, stored as words and terminated by 0, which the task wishes to receive. The function returns the task handle as an integer. <DT><A NAME="wimp_report"><CODE>wimp_report</CODE></A> <DD><CODE>wimp_report(s) </CODE> displays string <CODE>s </CODE> in a dialogue box and returns 0 if no key or mouse button is clicked, 1 if the OK button is selected, and 2 if the CANCEL button is selected. <DT><A NAME="while"><CODE>while</CODE></A> <DD><CODE>while c </CODE> terminating condition for <CODE>do/repeat </CODE> structure. <DT><A NAME="backquote"><CODE>`</CODE></A> <DD><CODE>`(x) </CODE> Returns as an integer the contents of the byte at the address or string <CODE>x </CODE>. If <CODE>s </CODE> is a string <CODE>`(s) </CODE> is the same as <CODE>s[0] </CODE>. <DT><A NAME="backquote2"><CODE>``</CODE></A> <DD><CODE>``(x,c) </CODE> Place byte <CODE>c </CODE> at address <CODE>x </CODE>, and return <CODE>c </CODE>. <DT><A NAME="pound"><CODE>£</CODE></A> <DD><CODE>£(x) </CODE> Returns as an integer the contents of the word at the address or string <CODE>x </CODE>. <DT><A NAME="pound2"><CODE>££</CODE></A> <DD><CODE>££(x,n) </CODE> Place integer <CODE>n </CODE> at address <CODE>x </CODE>, and return <CODE>n </CODE>. </DL> <HR>
00000000 3c 54 49 54 4c 45 3e 47 6c 6f 73 73 61 72 79 20 |<TITLE>Glossary | 00000010 66 6f 72 20 41 72 6d 42 6f 62 20 32 2e 30 3c 2f |for ArmBob 2.0</| 00000020 54 49 54 4c 45 3e 0a 3c 48 32 3e 47 6c 6f 73 73 |TITLE>.<H2>Gloss| 00000030 61 72 79 20 66 6f 72 20 41 72 6d 42 6f 62 20 32 |ary for ArmBob 2| 00000040 2e 30 3c 2f 48 32 3e 0a 0a 54 68 65 20 66 6f 6c |.0</H2>..The fol| 00000050 6c 6f 77 69 6e 67 20 77 6f 72 64 73 20 64 65 6e |lowing words den| 00000060 6f 74 65 20 62 75 69 6c 74 20 69 6e 20 66 75 6e |ote built in fun| 00000070 63 74 69 6f 6e 73 2c 20 76 61 6c 75 65 73 20 6f |ctions, values o| 00000080 72 20 0a 6f 70 65 72 61 74 6f 72 73 2e 20 54 68 |r .operators. Th| 00000090 65 79 20 64 6f 20 6e 6f 74 20 69 6e 63 6c 75 64 |ey do not includ| 000000a0 65 20 20 0a 3c 41 20 48 52 45 46 3d 22 73 79 6e |e .<A HREF="syn| 000000b0 6f 6e 79 6d 73 22 3e 70 72 65 64 65 66 69 6e 65 |onyms">predefine| 000000c0 64 20 63 6f 6e 73 74 61 6e 74 73 3c 2f 41 3e 2e |d constants</A>.| 000000d0 0a 3c 50 3e 0a 3c 41 20 48 52 45 46 3d 22 23 70 |.<P>.<A HREF="#p| 000000e0 6c 69 6e 67 22 3e 20 3c 43 4f 44 45 3e 21 3c 2f |ling"> <CODE>!</| 000000f0 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 |CODE></A> ,.<A H| 00000100 52 45 46 3d 22 23 6e 6f 74 65 71 75 61 6c 22 3e |REF="#notequal">| 00000110 20 3c 43 4f 44 45 3e 21 3d 3c 2f 43 4f 44 45 3e | <CODE>!=</CODE>| 00000120 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 |</A> ,.<A HREF="| 00000130 23 64 6f 6c 6c 61 72 22 3e 20 3c 43 4f 44 45 3e |#dollar"> <CODE>| 00000140 26 23 33 36 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |$</CODE></A>| 00000150 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 64 6f 6c | ,.<A HREF="#dol| 00000160 6c 61 72 32 22 3e 20 3c 43 4f 44 45 3e 26 23 33 |lar2"> <CODE>| 00000170 36 3b 26 23 33 36 3b 3c 2f 43 4f 44 45 3e 3c 2f |6;$</CODE></| 00000180 41 3e 20 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 |A> ,.<A HREF="#| 00000190 70 65 72 63 65 6e 74 22 3e 20 3c 43 4f 44 45 3e |percent"> <CODE>| 000001a0 26 23 33 37 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |%</CODE></A>| 000001b0 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 70 65 72 | ,.<A HREF="#per| 000001c0 63 65 6e 74 65 71 75 61 6c 22 3e 20 3c 43 4f 44 |centequal"> <COD| 000001d0 45 3e 26 23 33 37 3b 3d 3c 2f 43 4f 44 45 3e 3c |E>%=</CODE><| 000001e0 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 |/A> ,.<A HREF="#| 000001f0 61 6e 64 22 3e 20 3c 43 4f 44 45 3e 26 23 33 38 |and"> <CODE>&| 00000200 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c |;</CODE></A> ,.<| 00000210 41 20 48 52 45 46 3d 22 23 61 6e 64 32 22 3e 20 |A HREF="#and2"> | 00000220 3c 43 4f 44 45 3e 26 23 33 38 3b 26 23 33 38 3b |<CODE>&&| 00000230 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 |</CODE></A> ,.<A| 00000240 20 48 52 45 46 3d 22 23 61 6e 64 65 71 75 61 6c | HREF="#andequal| 00000250 22 3e 20 3c 43 4f 44 45 3e 26 23 33 38 3b 3d 3c |"> <CODE>&=<| 00000260 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 |/CODE></A> ,.<A | 00000270 48 52 45 46 3d 22 23 61 6e 64 32 65 71 75 61 6c |HREF="#and2equal| 00000280 22 3e 20 3c 43 4f 44 45 3e 26 23 33 38 3b 26 23 |"> <CODE>&&#| 00000290 33 38 3b 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 |38;=</CODE></A> | 000002a0 2c 0a 3c 41 20 48 52 45 46 3d 22 23 74 69 6d 65 |,.<A HREF="#time| 000002b0 73 22 3e 20 3c 43 4f 44 45 3e 26 23 34 32 3b 3c |s"> <CODE>*<| 000002c0 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 |/CODE></A> ,.<A | 000002d0 48 52 45 46 3d 22 23 74 69 6d 65 73 65 71 75 61 |HREF="#timesequa| 000002e0 6c 22 3e 20 3c 43 4f 44 45 3e 26 23 34 32 3b 3d |l"> <CODE>*=| 000002f0 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 |</CODE></A> ,.<A| 00000300 20 48 52 45 46 3d 22 23 70 6c 75 73 22 3e 20 3c | HREF="#plus"> <| 00000310 43 4f 44 45 3e 26 23 34 33 3b 3c 2f 43 4f 44 45 |CODE>+</CODE| 00000320 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d |></A> ,.<A HREF=| 00000330 22 23 70 6c 75 73 32 22 3e 20 3c 43 4f 44 45 3e |"#plus2"> <CODE>| 00000340 26 23 34 33 3b 26 23 34 33 3b 3c 2f 43 4f 44 45 |++</CODE| 00000350 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d |></A> ,.<A HREF=| 00000360 22 23 70 6c 75 73 65 71 75 61 6c 22 3e 20 3c 43 |"#plusequal"> <C| 00000370 4f 44 45 3e 26 23 34 33 3b 3d 3c 2f 43 4f 44 45 |ODE>+=</CODE| 00000380 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d |></A> ,.<A HREF=| 00000390 22 23 6d 69 6e 75 73 22 3e 20 3c 43 4f 44 45 3e |"#minus"> <CODE>| 000003a0 26 23 34 35 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |-</CODE></A>| 000003b0 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 6d 69 6e | ,.<A HREF="#min| 000003c0 75 73 32 22 3e 20 3c 43 4f 44 45 3e 26 23 34 35 |us2"> <CODE>-| 000003d0 3b 26 23 34 35 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 |;-</CODE></A| 000003e0 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 6d 69 |> ,.<A HREF="#mi| 000003f0 6e 75 73 65 71 75 61 6c 22 3e 20 3c 43 4f 44 45 |nusequal"> <CODE| 00000400 3e 26 23 34 35 3b 3d 3c 2f 43 4f 44 45 3e 3c 2f |>-=</CODE></| 00000410 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 61 |A> ,.<A HREF="#a| 00000420 72 72 6f 77 22 3e 2d 26 67 74 3b 3c 43 4f 44 45 |rrow">-><CODE| 00000430 3e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c |></CODE></A> ,.<| 00000440 41 20 48 52 45 46 3d 22 23 64 69 76 69 64 65 22 |A HREF="#divide"| 00000450 3e 20 3c 43 4f 44 45 3e 26 23 34 37 3b 3c 2f 43 |> <CODE>/</C| 00000460 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 00000470 52 45 46 3d 22 23 64 69 76 69 64 65 65 71 75 61 |REF="#divideequa| 00000480 6c 22 3e 20 3c 43 4f 44 45 3e 26 23 34 37 3b 3d |l"> <CODE>/=| 00000490 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 |</CODE></A> ,.<A| 000004a0 20 48 52 45 46 3d 22 23 63 6f 6c 6f 6e 22 3e 3c | HREF="#colon"><| 000004b0 43 4f 44 45 3e 3a 3c 2f 43 4f 44 45 3e 3c 2f 41 |CODE>:</CODE></A| 000004c0 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 63 6f |> ,.<A HREF="#co| 000004d0 6c 6f 6e 32 22 3e 3c 43 4f 44 45 3e 3a 3a 3c 2f |lon2"><CODE>::</| 000004e0 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 |CODE></A> ,.<A H| 000004f0 52 45 46 3d 22 23 6c 65 73 73 74 68 61 6e 22 3e |REF="#lessthan">| 00000500 20 3c 43 4f 44 45 3e 26 6c 74 3b 3c 2f 43 4f 44 | <CODE><</COD| 00000510 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 |E></A> ,.<A HREF| 00000520 3d 22 23 6c 65 73 73 74 68 61 6e 32 22 3e 20 3c |="#lessthan2"> <| 00000530 43 4f 44 45 3e 26 6c 74 3b 26 6c 74 3b 3c 2f 43 |CODE><<</C| 00000540 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 |ODE></A> ,.<A HR| 00000550 45 46 3d 22 23 6c 65 73 73 74 68 61 6e 65 71 75 |EF="#lessthanequ| 00000560 61 6c 22 3e 20 3c 43 4f 44 45 3e 26 6c 74 3b 3d |al"> <CODE><=| 00000570 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00000580 41 20 48 52 45 46 3d 22 23 6c 65 73 73 74 68 61 |A HREF="#lesstha| 00000590 6e 32 65 71 75 61 6c 22 3e 20 3c 43 4f 44 45 3e |n2equal"> <CODE>| 000005a0 26 6c 74 3b 26 6c 74 3b 3d 3c 2f 43 4f 44 45 3e |<<=</CODE>| 000005b0 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 |</A> ,.<A HREF="| 000005c0 23 61 73 73 69 67 6e 22 3e 20 3c 43 4f 44 45 3e |#assign"> <CODE>| 000005d0 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a |=</CODE></A> , .| 000005e0 3c 41 20 48 52 45 46 3d 22 23 65 71 75 61 6c 22 |<A HREF="#equal"| 000005f0 3e 20 3c 43 4f 44 45 3e 3d 3d 3c 2f 43 4f 44 45 |> <CODE>==</CODE| 00000600 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 |></A> , .<A HREF| 00000610 3d 22 23 67 72 65 61 74 65 72 22 3e 20 3c 43 4f |="#greater"> <CO| 00000620 44 45 3e 26 67 74 3b 3c 2f 43 4f 44 45 3e 3c 2f |DE>></CODE></| 00000630 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 67 |A> ,.<A HREF="#g| 00000640 72 65 61 74 65 72 65 71 75 61 6c 22 3e 20 3c 43 |reaterequal"> <C| 00000650 4f 44 45 3e 26 67 74 3b 3d 3c 2f 43 4f 44 45 3e |ODE>>=</CODE>| 00000660 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 |</A> ,.<A HREF="| 00000670 23 67 72 65 61 74 65 72 32 22 3e 20 3c 43 4f 44 |#greater2"> <COD| 00000680 45 3e 26 67 74 3b 26 67 74 3b 3c 2f 43 4f 44 45 |E>>></CODE| 00000690 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d |></A> ,.<A HREF=| 000006a0 22 23 67 72 65 61 74 65 72 32 65 71 75 61 6c 22 |"#greater2equal"| 000006b0 3e 20 3c 43 4f 44 45 3e 26 67 74 3b 26 67 74 3b |> <CODE>>>| 000006c0 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c |=</CODE></A> ,.<| 000006d0 41 20 48 52 45 46 3d 22 23 71 75 65 72 79 22 3e |A HREF="#query">| 000006e0 20 3c 43 4f 44 45 3e 3f 3c 2f 43 4f 44 45 3e 3c | <CODE>?</CODE><| 000006f0 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 |/A> ,.<A HREF="#| 00000700 68 61 74 22 3e 20 3c 43 4f 44 45 3e 5e 3c 2f 43 |hat"> <CODE>^</C| 00000710 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 00000720 52 45 46 3d 22 23 68 61 74 65 71 75 61 6c 22 3e |REF="#hatequal">| 00000730 20 3c 43 4f 44 45 3e 5e 3d 3c 2f 43 4f 44 45 3e | <CODE>^=</CODE>| 00000740 3c 2f 41 3e 20 2c 20 20 0a 3c 41 20 48 52 45 46 |</A> , .<A HREF| 00000750 3d 22 23 61 74 22 3e 20 3c 43 4f 44 45 3e 26 23 |="#at"> <CODE>&#| 00000760 36 34 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c |64;</CODE></A> ,| 00000770 20 0a 3c 41 20 48 52 45 46 3d 22 23 61 63 6f 73 | .<A HREF="#acos| 00000780 22 3e 20 3c 43 4f 44 45 3e 61 63 6f 73 3c 2f 43 |"> <CODE>acos</C| 00000790 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 000007a0 52 45 46 3d 22 23 61 73 69 6e 22 3e 20 3c 43 4f |REF="#asin"> <CO| 000007b0 44 45 3e 61 73 69 6e 3c 2f 43 4f 44 45 3e 3c 2f |DE>asin</CODE></| 000007c0 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 |A> , .<A HREF="#| 000007d0 61 74 61 6e 22 3e 20 3c 43 4f 44 45 3e 61 74 61 |atan"> <CODE>ata| 000007e0 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a |n</CODE></A> , .| 000007f0 3c 41 20 48 52 45 46 3d 22 23 62 72 65 61 6b 22 |<A HREF="#break"| 00000800 3e 20 3c 43 4f 44 45 3e 62 72 65 61 6b 3c 2f 43 |> <CODE>break</C| 00000810 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 00000820 52 45 46 3d 22 23 63 61 6c 6c 22 3e 20 3c 43 4f |REF="#call"> <CO| 00000830 44 45 3e 63 61 6c 6c 3c 2f 43 4f 44 45 3e 3c 2f |DE>call</CODE></| 00000840 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 |A> , .<A HREF="#| 00000850 63 61 73 65 22 3e 20 3c 43 4f 44 45 3e 63 61 73 |case"> <CODE>cas| 00000860 65 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a |e</CODE></A> , .| 00000870 3c 41 20 48 52 45 46 3d 22 23 63 6c 61 73 73 22 |<A HREF="#class"| 00000880 3e 20 3c 43 4f 44 45 3e 63 6c 61 73 73 3c 2f 43 |> <CODE>class</C| 00000890 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 000008a0 52 45 46 3d 22 23 63 6f 6e 74 69 6e 75 65 22 3e |REF="#continue">| 000008b0 20 3c 43 4f 44 45 3e 63 6f 6e 74 69 6e 75 65 3c | <CODE>continue<| 000008c0 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 |/CODE></A> , .<A| 000008d0 20 48 52 45 46 3d 22 23 63 6f 73 22 3e 20 3c 43 | HREF="#cos"> <C| 000008e0 4f 44 45 3e 63 6f 73 3c 2f 43 4f 44 45 3e 3c 2f |ODE>cos</CODE></| 000008f0 41 3e 20 2c 20 20 0a 3c 41 20 48 52 45 46 3d 22 |A> , .<A HREF="| 00000900 23 64 65 66 61 75 6c 74 22 3e 20 3c 43 4f 44 45 |#default"> <CODE| 00000910 3e 64 65 66 61 75 6c 74 3c 2f 43 4f 44 45 3e 3c |>default</CODE><| 00000920 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000930 23 64 6f 22 3e 20 3c 43 4f 44 45 3e 64 6f 3c 2f |#do"> <CODE>do</| 00000940 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 |CODE></A> , .<A | 00000950 48 52 45 46 3d 22 23 65 6c 73 65 22 3e 20 3c 43 |HREF="#else"> <C| 00000960 4f 44 45 3e 65 6c 73 65 3c 2f 43 4f 44 45 3e 3c |ODE>else</CODE><| 00000970 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000980 23 65 6e 75 6d 22 3e 20 3c 43 4f 44 45 3e 65 6e |#enum"> <CODE>en| 00000990 75 6d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 |um</CODE></A> , | 000009a0 0a 3c 41 20 48 52 45 46 3d 22 23 65 78 70 22 3e |.<A HREF="#exp">| 000009b0 20 3c 43 4f 44 45 3e 65 78 70 3c 2f 43 4f 44 45 | <CODE>exp</CODE| 000009c0 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 |></A> , .<A HREF| 000009d0 3d 22 23 66 63 6c 6f 73 65 22 3e 20 3c 43 4f 44 |="#fclose"> <COD| 000009e0 45 3e 66 63 6c 6f 73 65 3c 2f 43 4f 44 45 3e 3c |E>fclose</CODE><| 000009f0 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 |/A> ,.<A HREF="#| 00000a00 66 6c 6f 6f 72 22 3e 20 3c 43 4f 44 45 3e 66 6c |floor"> <CODE>fl| 00000a10 6f 6f 72 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c |oor</CODE></A> ,| 00000a20 20 0a 3c 41 20 48 52 45 46 3d 22 23 66 6f 70 65 | .<A HREF="#fope| 00000a30 6e 22 3e 20 3c 43 4f 44 45 3e 66 6f 70 65 6e 3c |n"> <CODE>fopen<| 00000a40 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 |/CODE></A> , .<A| 00000a50 20 48 52 45 46 3d 22 23 66 6f 72 22 3e 20 3c 43 | HREF="#for"> <C| 00000a60 4f 44 45 3e 66 6f 72 3c 2f 43 4f 44 45 3e 3c 2f |ODE>for</CODE></| 00000a70 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 |A> , .<A HREF="#| 00000a80 67 63 22 3e 20 3c 43 4f 44 45 3e 67 63 3c 2f 43 |gc"> <CODE>gc</C| 00000a90 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 00000aa0 52 45 46 3d 22 23 67 65 74 61 72 67 22 3e 20 3c |REF="#getarg"> <| 00000ab0 43 4f 44 45 3e 67 65 74 61 72 67 3c 2f 43 4f 44 |CODE>getarg</COD| 00000ac0 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 |E></A> , .<A HRE| 00000ad0 46 3d 22 23 67 65 74 63 22 3e 20 3c 43 4f 44 45 |F="#getc"> <CODE| 00000ae0 3e 67 65 74 63 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |>getc</CODE></A>| 00000af0 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 69 66 | , .<A HREF="#if| 00000b00 22 3e 20 3c 43 4f 44 45 3e 69 66 3c 2f 43 4f 44 |"> <CODE>if</COD| 00000b10 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 |E></A> , .<A HRE| 00000b20 46 3d 22 23 69 6e 22 3e 20 3c 43 4f 44 45 3e 69 |F="#in"> <CODE>i| 00000b30 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a |n</CODE></A> , .| 00000b40 3c 41 20 48 52 45 46 3d 22 23 69 6e 70 75 74 22 |<A HREF="#input"| 00000b50 3e 20 3c 43 4f 44 45 3e 69 6e 70 75 74 3c 2f 43 |> <CODE>input</C| 00000b60 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 20 48 52 |ODE></A> ,.<A HR| 00000b70 45 46 3d 22 23 6c 6f 63 61 6c 22 3e 20 3c 43 4f |EF="#local"> <CO| 00000b80 44 45 3e 6c 6f 63 61 6c 3c 2f 43 4f 44 45 3e 3c |DE>local</CODE><| 00000b90 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000ba0 23 6c 6f 67 22 3e 20 3c 43 4f 44 45 3e 6c 6f 67 |#log"> <CODE>log| 00000bb0 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00000bc0 41 20 48 52 45 46 3d 22 23 6e 65 77 22 3e 20 3c |A HREF="#new"> <| 00000bd0 43 4f 44 45 3e 6e 65 77 3c 2f 43 4f 44 45 3e 3c |CODE>new</CODE><| 00000be0 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000bf0 23 6e 65 77 73 74 72 69 6e 67 22 3e 20 3c 43 4f |#newstring"> <CO| 00000c00 44 45 3e 6e 65 77 73 74 72 69 6e 67 3c 2f 43 4f |DE>newstring</CO| 00000c10 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 |DE></A> , .<A HR| 00000c20 45 46 3d 22 23 6e 65 77 76 65 63 74 6f 72 22 3e |EF="#newvector">| 00000c30 20 3c 43 4f 44 45 3e 6e 65 77 76 65 63 74 6f 72 | <CODE>newvector| 00000c40 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00000c50 41 20 48 52 45 46 3d 22 23 6e 69 6c 22 3e 20 3c |A HREF="#nil"> <| 00000c60 43 4f 44 45 3e 6e 69 6c 3c 2f 43 4f 44 45 3e 3c |CODE>nil</CODE><| 00000c70 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000c80 23 6f 73 63 6c 69 22 3e 20 3c 43 4f 44 45 3e 6f |#oscli"> <CODE>o| 00000c90 73 63 6c 69 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 |scli</CODE></A> | 00000ca0 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 70 69 22 |, .<A HREF="#pi"| 00000cb0 3e 20 3c 43 4f 44 45 3e 70 69 3c 2f 43 4f 44 45 |> <CODE>pi</CODE| 00000cc0 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 |></A> , .<A HREF| 00000cd0 3d 22 23 70 72 69 6e 74 22 3e 20 3c 43 4f 44 45 |="#print"> <CODE| 00000ce0 3e 70 72 69 6e 74 3c 2f 43 4f 44 45 3e 3c 2f 41 |>print</CODE></A| 00000cf0 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 70 |> , .<A HREF="#p| 00000d00 75 74 22 3e 20 3c 43 4f 44 45 3e 70 75 74 3c 2f |ut"> <CODE>put</| 00000d10 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 |CODE></A> , .<A | 00000d20 48 52 45 46 3d 22 23 70 75 74 63 22 3e 20 3c 43 |HREF="#putc"> <C| 00000d30 4f 44 45 3e 70 75 74 63 3c 2f 43 4f 44 45 3e 3c |ODE>putc</CODE><| 00000d40 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000d50 23 71 75 69 74 22 3e 20 3c 43 4f 44 45 3e 71 75 |#quit"> <CODE>qu| 00000d60 69 74 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 |it</CODE></A> , | 00000d70 0a 3c 41 20 48 52 45 46 3d 22 23 72 65 70 65 61 |.<A HREF="#repea| 00000d80 74 22 3e 20 3c 43 4f 44 45 3e 72 65 70 65 61 74 |t"> <CODE>repeat| 00000d90 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00000da0 41 20 48 52 45 46 3d 22 23 72 6e 64 22 3e 20 3c |A HREF="#rnd"> <| 00000db0 43 4f 44 45 3e 72 6e 64 3c 2f 43 4f 44 45 3e 3c |CODE>rnd</CODE><| 00000dc0 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000dd0 23 72 65 74 75 72 6e 22 3e 20 3c 43 4f 44 45 3e |#return"> <CODE>| 00000de0 72 65 74 75 72 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 |return</CODE></A| 00000df0 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 73 |> , .<A HREF="#s| 00000e00 65 65 64 22 3e 20 3c 43 4f 44 45 3e 73 65 65 64 |eed"> <CODE>seed| 00000e10 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00000e20 41 20 48 52 45 46 3d 22 23 73 69 6e 22 3e 20 3c |A HREF="#sin"> <| 00000e30 43 4f 44 45 3e 73 69 6e 3c 2f 43 4f 44 45 3e 3c |CODE>sin</CODE><| 00000e40 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 |/A> , .<A HREF="| 00000e50 23 73 69 7a 65 6f 66 22 3e 20 3c 43 4f 44 45 3e |#sizeof"> <CODE>| 00000e60 73 69 7a 65 6f 66 3c 2f 43 4f 44 45 3e 3c 2f 41 |sizeof</CODE></A| 00000e70 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 73 |> , .<A HREF="#s| 00000e80 71 72 74 22 3e 20 3c 43 4f 44 45 3e 73 71 72 74 |qrt"> <CODE>sqrt| 00000e90 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00000ea0 41 20 48 52 45 46 3d 22 23 73 74 61 72 74 5f 74 |A HREF="#start_t| 00000eb0 61 73 6b 22 3e 20 3c 43 4f 44 45 3e 73 74 61 72 |ask"> <CODE>star| 00000ec0 74 5f 74 61 73 6b 3c 2f 43 4f 44 45 3e 3c 2f 41 |t_task</CODE></A| 00000ed0 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 73 |> , .<A HREF="#s| 00000ee0 74 61 74 69 63 22 3e 20 3c 43 4f 44 45 3e 73 74 |tatic"> <CODE>st| 00000ef0 61 74 69 63 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 |atic</CODE></A> | 00000f00 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 73 74 64 |, .<A HREF="#std| 00000f10 65 72 72 22 3e 20 3c 43 4f 44 45 3e 73 74 64 65 |err"> <CODE>stde| 00000f20 72 72 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 |rr</CODE></A> , | 00000f30 0a 3c 41 20 48 52 45 46 3d 22 23 73 74 64 69 6e |.<A HREF="#stdin| 00000f40 22 3e 20 3c 43 4f 44 45 3e 73 74 64 69 6e 3c 2f |"> <CODE>stdin</| 00000f50 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 |CODE></A> , .<A | 00000f60 48 52 45 46 3d 22 23 73 74 64 6f 75 74 22 3e 20 |HREF="#stdout"> | 00000f70 3c 43 4f 44 45 3e 73 74 64 6f 75 74 3c 2f 43 4f |<CODE>stdout</CO| 00000f80 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 |DE></A> , .<A HR| 00000f90 45 46 3d 22 23 73 77 69 22 3e 20 3c 43 4f 44 45 |EF="#swi"> <CODE| 00000fa0 3e 73 77 69 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 |>swi</CODE></A> | 00000fb0 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 73 77 69 |, .<A HREF="#swi| 00000fc0 74 63 68 22 3e 20 3c 43 4f 44 45 3e 73 77 69 74 |tch"> <CODE>swit| 00000fd0 63 68 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 |ch</CODE></A> , | 00000fe0 0a 3c 41 20 48 52 45 46 3d 22 23 73 79 73 76 61 |.<A HREF="#sysva| 00000ff0 72 22 3e 20 3c 43 4f 44 45 3e 73 79 73 76 61 72 |r"> <CODE>sysvar| 00001000 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00001010 41 20 48 52 45 46 3d 22 23 74 61 6e 22 3e 20 3c |A HREF="#tan"> <| 00001020 43 4f 44 45 3e 74 61 6e 3c 2f 43 4f 44 45 3e 3c |CODE>tan</CODE><| 00001030 2f 41 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 |/A> ,.<A HREF="#| 00001040 74 68 69 73 22 3e 20 3c 43 4f 44 45 3e 74 68 69 |this"> <CODE>thi| 00001050 73 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a |s</CODE></A> , .| 00001060 3c 41 20 48 52 45 46 3d 22 23 74 69 6d 65 22 3e |<A HREF="#time">| 00001070 20 3c 43 4f 44 45 3e 74 69 6d 65 3c 2f 43 4f 44 | <CODE>time</COD| 00001080 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 |E></A> , .<A HRE| 00001090 46 3d 22 23 74 79 70 65 6f 66 22 3e 20 3c 43 4f |F="#typeof"> <CO| 000010a0 44 45 3e 74 79 70 65 6f 66 3c 2f 43 4f 44 45 3e |DE>typeof</CODE>| 000010b0 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d |</A> , .<A HREF=| 000010c0 22 23 75 6e 74 69 6c 22 3e 20 3c 43 4f 44 45 3e |"#until"> <CODE>| 000010d0 75 6e 74 69 6c 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |until</CODE></A>| 000010e0 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 76 61 | , .<A HREF="#va| 000010f0 6c 22 3e 20 3c 43 4f 44 45 3e 76 61 6c 3c 2f 43 |l"> <CODE>val</C| 00001100 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 00001110 52 45 46 3d 22 23 76 65 63 74 6f 72 22 3e 20 3c |REF="#vector"> <| 00001120 43 4f 44 45 3e 76 65 63 74 6f 72 3c 2f 43 4f 44 |CODE>vector</COD| 00001130 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 |E></A> , .<A HRE| 00001140 46 3d 22 23 77 69 6d 70 5f 63 6c 6f 73 65 64 6f |F="#wimp_closedo| 00001150 77 6e 22 3e 20 3c 43 4f 44 45 3e 77 69 6d 70 5f |wn"> <CODE>wimp_| 00001160 63 6c 6f 73 65 64 6f 77 6e 3c 2f 43 4f 44 45 3e |closedown</CODE>| 00001170 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 3d |</A> , .<A HREF=| 00001180 22 23 77 69 6d 70 5f 69 6e 69 74 22 3e 20 3c 43 |"#wimp_init"> <C| 00001190 4f 44 45 3e 77 69 6d 70 5f 69 6e 69 74 3c 2f 43 |ODE>wimp_init</C| 000011a0 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 000011b0 52 45 46 3d 22 23 77 69 6d 70 5f 72 65 70 6f 72 |REF="#wimp_repor| 000011c0 74 22 3e 20 3c 43 4f 44 45 3e 77 69 6d 70 5f 72 |t"> <CODE>wimp_r| 000011d0 65 70 6f 72 74 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |eport</CODE></A>| 000011e0 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 77 68 | , .<A HREF="#wh| 000011f0 69 6c 65 22 3e 20 3c 43 4f 44 45 3e 77 68 69 6c |ile"> <CODE>whil| 00001200 65 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c |e</CODE></A> ,.<| 00001210 41 20 48 52 45 46 3d 22 23 6f 72 22 3e 20 3c 43 |A HREF="#or"> <C| 00001220 4f 44 45 3e 7c 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |ODE>|</CODE></A>| 00001230 20 2c 20 0a 3c 41 20 48 52 45 46 3d 22 23 6f 72 | , .<A HREF="#or| 00001240 65 71 75 61 6c 22 3e 20 3c 43 4f 44 45 3e 7c 3d |equal"> <CODE>|=| 00001250 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a 3c 41 |</CODE></A> ,.<A| 00001260 20 48 52 45 46 3d 22 23 6f 72 32 22 3e 20 3c 43 | HREF="#or2"> <C| 00001270 4f 44 45 3e 7c 7c 3c 2f 43 4f 44 45 3e 3c 2f 41 |ODE>||</CODE></A| 00001280 3e 20 2c 0a 3c 41 20 48 52 45 46 3d 22 23 6f 72 |> ,.<A HREF="#or| 00001290 32 65 71 75 61 6c 22 3e 20 3c 43 4f 44 45 3e 7c |2equal"> <CODE>|| 000012a0 7c 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 0a ||=</CODE></A> ,.| 000012b0 3c 41 20 48 52 45 46 3d 22 23 74 69 6c 64 65 22 |<A HREF="#tilde"| 000012c0 3e 20 3c 43 4f 44 45 3e 7e 3c 2f 43 4f 44 45 3e |> <CODE>~</CODE>| 000012d0 3c 2f 41 3e 20 2c 20 20 0a 3c 41 20 48 52 45 46 |</A> , .<A HREF| 000012e0 3d 22 23 62 61 63 6b 71 75 6f 74 65 22 3e 20 3c |="#backquote"> <| 000012f0 43 4f 44 45 3e 26 23 39 36 3b 3c 2f 43 4f 44 45 |CODE>`</CODE| 00001300 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 52 45 46 |></A> , .<A HREF| 00001310 3d 22 23 62 61 63 6b 71 75 6f 74 65 32 22 3e 20 |="#backquote2"> | 00001320 3c 43 4f 44 45 3e 26 23 39 36 3b 26 23 39 36 3b |<CODE>``| 00001330 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c |</CODE></A> , .<| 00001340 41 20 48 52 45 46 3d 22 23 70 6f 75 6e 64 22 3e |A HREF="#pound">| 00001350 20 3c 43 4f 44 45 3e 26 23 31 36 33 3b 3c 2f 43 | <CODE>£</C| 00001360 4f 44 45 3e 3c 2f 41 3e 20 2c 20 0a 3c 41 20 48 |ODE></A> , .<A H| 00001370 52 45 46 3d 22 23 70 6f 75 6e 64 32 22 3e 20 3c |REF="#pound2"> <| 00001380 43 4f 44 45 3e 26 23 31 36 33 3b 26 23 31 36 33 |CODE>££| 00001390 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 2e 20 0a 3c |;</CODE></A>. .<| 000013a0 48 52 3e 0a 3c 44 4c 3e 0a 0a 3c 44 54 3e 3c 41 |HR>.<DL>..<DT><A| 000013b0 20 4e 41 4d 45 3d 22 70 6c 69 6e 67 22 3e 3c 43 | NAME="pling"><C| 000013c0 4f 44 45 3e 26 23 33 33 3b 3c 2f 43 4f 44 45 3e |ODE>!</CODE>| 000013d0 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 26 |</A>.<DD><CODE>&| 000013e0 23 33 33 3b 78 20 3c 2f 43 4f 44 45 3e 20 52 65 |#33;x </CODE> Re| 000013f0 74 75 72 6e 73 20 30 20 69 66 20 3c 43 4f 44 45 |turns 0 if <CODE| 00001400 3e 78 20 3c 2f 43 4f 44 45 3e 20 0a 20 20 20 69 |>x </CODE> . i| 00001410 73 20 6e 6f 6e 7a 65 72 6f 20 61 6e 64 20 31 20 |s nonzero and 1 | 00001420 6f 74 68 65 72 77 69 73 65 2e 20 3c 43 4f 44 45 |otherwise. <CODE| 00001430 3e 78 20 3c 2f 43 4f 44 45 3e 20 6d 75 73 74 20 |>x </CODE> must | 00001440 62 65 0a 20 20 20 61 6e 20 69 6e 74 65 67 65 72 |be. an integer| 00001450 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00001460 6e 6f 74 65 71 75 61 6c 22 3e 3c 43 4f 44 45 3e |notequal"><CODE>| 00001470 21 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |!=</CODE></A>.<D| 00001480 44 3e 3c 43 4f 44 45 3e 78 20 21 3d 20 79 20 3c |D><CODE>x != y <| 00001490 2f 43 4f 44 45 3e 20 42 6f 74 68 20 3c 43 4f 44 |/CODE> Both <COD| 000014a0 45 3e 78 2c 20 79 20 3c 2f 43 4f 44 45 3e 20 6d |E>x, y </CODE> m| 000014b0 75 73 74 20 62 65 0a 20 20 20 20 20 20 69 6e 74 |ust be. int| 000014c0 65 67 65 72 73 2c 20 73 74 72 69 6e 67 73 20 6f |egers, strings o| 000014d0 72 20 72 65 61 6c 73 2e 20 49 74 20 72 65 74 75 |r reals. It retu| 000014e0 72 6e 73 20 31 20 69 66 20 74 68 65 79 20 61 72 |rns 1 if they ar| 000014f0 65 20 0a 20 20 20 20 20 20 64 69 66 66 65 72 65 |e . differe| 00001500 6e 74 20 61 6e 64 20 30 20 69 66 20 74 68 65 79 |nt and 0 if they| 00001510 20 61 72 65 20 65 71 75 61 6c 2e 0a 0a 3c 44 54 | are equal...<DT| 00001520 3e 3c 41 20 4e 41 4d 45 3d 22 64 6f 6c 6c 61 72 |><A NAME="dollar| 00001530 22 3e 3c 43 4f 44 45 3e 26 23 33 36 3b 3c 2f 43 |"><CODE>$</C| 00001540 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f |ODE></A>.<DD><CO| 00001550 44 45 3e 26 23 33 36 3b 28 78 29 20 3c 2f 43 4f |DE>$(x) </CO| 00001560 44 45 3e 20 69 73 20 74 68 65 20 73 74 72 69 6e |DE> is the strin| 00001570 67 20 73 74 6f 72 65 64 20 61 74 20 61 64 64 72 |g stored at addr| 00001580 65 73 73 0a 20 20 20 20 3c 43 4f 44 45 3e 78 20 |ess. <CODE>x | 00001590 3c 2f 43 4f 44 45 3e 2e 20 54 68 65 20 73 74 72 |</CODE>. The str| 000015a0 69 6e 67 20 69 73 20 74 65 72 6d 69 6e 61 74 65 |ing is terminate| 000015b0 64 20 62 79 20 61 6e 79 20 63 68 61 72 61 63 74 |d by any charact| 000015c0 65 72 20 0a 20 20 20 20 77 69 74 68 20 41 53 43 |er . with ASC| 000015d0 49 49 20 63 6f 64 65 20 6c 65 73 73 20 74 68 61 |II code less tha| 000015e0 6e 20 33 32 2e 20 54 68 65 20 61 64 64 72 65 73 |n 32. The addres| 000015f0 73 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 |s <CODE>x </CODE| 00001600 3e 0a 20 20 20 20 73 68 6f 75 6c 64 20 62 65 20 |>. should be | 00001610 61 6e 20 69 6e 74 65 67 65 72 20 64 69 76 69 73 |an integer divis| 00001620 69 62 6c 65 20 62 79 20 34 2e 0a 0a 3c 44 54 3e |ible by 4...<DT>| 00001630 3c 41 20 4e 41 4d 45 3d 22 64 6f 6c 6c 61 72 32 |<A NAME="dollar2| 00001640 22 3e 3c 43 4f 44 45 3e 26 23 33 36 3b 26 23 33 |"><CODE>$| 00001650 36 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |6;</CODE></A>.<D| 00001660 44 3e 3c 43 4f 44 45 3e 26 23 33 36 3b 26 23 33 |D><CODE>$| 00001670 36 3b 28 78 2c 73 29 20 3c 2f 43 4f 44 45 3e 20 |6;(x,s) </CODE> | 00001680 72 65 74 75 72 6e 73 20 74 68 65 20 76 61 6c 75 |returns the valu| 00001690 65 20 6f 66 20 74 68 65 20 73 74 72 69 6e 67 0a |e of the string.| 000016a0 20 20 20 20 3c 43 4f 44 45 3e 73 20 3c 2f 43 4f | <CODE>s </CO| 000016b0 44 45 3e 20 61 6e 64 20 70 6c 61 63 65 73 20 3c |DE> and places <| 000016c0 43 4f 44 45 3e 73 20 3c 2f 43 4f 44 45 3e 20 61 |CODE>s </CODE> a| 000016d0 74 20 61 64 64 72 65 73 73 20 0a 20 20 20 20 3c |t address . <| 000016e0 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2e 20 |CODE>x </CODE>. | 000016f0 0a 3c 44 44 3e 45 2e 67 2e 20 3c 43 4f 44 45 3e |.<DD>E.g. <CODE>| 00001700 26 23 33 36 3b 26 23 33 36 3b 28 78 2c 26 23 33 |$$(x,| 00001710 36 3b 26 23 33 36 3b 28 79 2c 73 29 29 3b 20 3c |6;$(y,s)); <| 00001720 2f 43 4f 44 45 3e 0a 20 20 20 20 73 74 6f 72 65 |/CODE>. store| 00001730 73 20 3c 43 4f 44 45 3e 73 20 3c 2f 43 4f 44 45 |s <CODE>s </CODE| 00001740 3e 20 61 74 20 62 6f 74 68 20 3c 43 4f 44 45 3e |> at both <CODE>| 00001750 78 20 3c 2f 43 4f 44 45 3e 20 61 6e 64 20 3c 43 |x </CODE> and <C| 00001760 4f 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 2e 0a 0a |ODE>y </CODE>...| 00001770 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 70 65 72 |<DT><A NAME="per| 00001780 63 65 6e 74 22 3e 3c 43 4f 44 45 3e 26 23 33 37 |cent"><CODE>%| 00001790 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |;</CODE></A>.<DD| 000017a0 3e 3c 43 4f 44 45 3e 78 20 26 23 33 37 3b 20 79 |><CODE>x % y| 000017b0 20 3c 2f 43 4f 44 45 3e 20 69 73 20 72 65 6d 61 | </CODE> is rema| 000017c0 69 6e 64 65 72 20 66 6f 72 20 64 69 76 69 64 69 |inder for dividi| 000017d0 6e 67 20 74 68 65 20 0a 69 6e 74 65 67 65 72 20 |ng the .integer | 000017e0 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 20 |<CODE>x </CODE> | 000017f0 62 79 20 74 68 65 20 69 6e 74 65 67 65 72 20 3c |by the integer <| 00001800 43 4f 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 2e 0a |CODE>y </CODE>..| 00001810 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 70 65 |.<DT><A NAME="pe| 00001820 72 63 65 6e 74 65 71 75 61 6c 22 3e 3c 43 4f 44 |rcentequal"><COD| 00001830 45 3e 26 23 33 37 3b 3d 3c 2f 43 4f 44 45 3e 3c |E>%=</CODE><| 00001840 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 |/A>.<DD><CODE>x | 00001850 26 23 33 37 3b 3d 20 79 20 3c 2f 43 4f 44 45 3e |%= y </CODE>| 00001860 20 41 73 73 69 67 6e 20 3c 43 4f 44 45 3e 78 25 | Assign <CODE>x%| 00001870 79 20 3c 2f 43 4f 44 45 3e 20 74 6f 20 0a 20 20 |y </CODE> to . | 00001880 20 20 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 | <CODE>x </COD| 00001890 45 3e 2c 20 61 6e 64 20 74 68 65 6e 20 72 65 74 |E>, and then ret| 000018a0 75 72 6e 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f |urn <CODE>x </CO| 000018b0 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d |DE>...<DT><A NAM| 000018c0 45 3d 22 61 6e 64 22 3e 3c 43 4f 44 45 3e 26 23 |E="and"><CODE>&#| 000018d0 33 38 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c |38;</CODE></A>.<| 000018e0 44 44 3e 3c 43 4f 44 45 3e 78 20 26 23 33 38 3b |DD><CODE>x &| 000018f0 20 79 20 3c 2f 43 4f 44 45 3e 20 72 65 74 75 72 | y </CODE> retur| 00001900 6e 73 20 74 68 65 20 62 69 74 77 69 73 65 20 58 |ns the bitwise X| 00001910 4f 52 20 6f 66 20 0a 20 20 20 20 3c 43 4f 44 45 |OR of . <CODE| 00001920 3e 78 20 3c 2f 43 4f 44 45 3e 20 61 6e 64 20 3c |>x </CODE> and <| 00001930 43 4f 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 2e 20 |CODE>y </CODE>. | 00001940 42 6f 74 68 20 3c 43 4f 44 45 3e 78 2c 79 20 3c |Both <CODE>x,y <| 00001950 2f 43 4f 44 45 3e 0a 20 20 20 20 6d 75 73 74 20 |/CODE>. must | 00001960 62 65 20 69 6e 74 65 67 65 72 73 2e 0a 0a 3c 44 |be integers...<D| 00001970 54 3e 3c 41 20 4e 41 4d 45 3d 22 61 6e 64 32 22 |T><A NAME="and2"| 00001980 3e 3c 43 4f 44 45 3e 26 23 33 38 3b 26 23 33 38 |><CODE>&&| 00001990 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |;</CODE></A>.<DD| 000019a0 3e 3c 43 4f 44 45 3e 78 20 26 23 33 38 3b 26 23 |><CODE>x &&#| 000019b0 33 38 3b 20 79 20 3c 2f 43 4f 44 45 3e 20 49 66 |38; y </CODE> If| 000019c0 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e | <CODE>x </CODE>| 000019d0 20 69 73 20 0a 20 20 20 7a 65 72 6f 20 74 68 65 | is . zero the| 000019e0 20 65 78 70 72 65 73 73 69 6f 6e 20 72 65 74 75 | expression retu| 000019f0 72 6e 73 20 30 20 77 69 74 68 6f 75 74 20 65 76 |rns 0 without ev| 00001a00 61 6c 75 61 74 69 6e 67 20 0a 20 20 20 3c 43 4f |aluating . <CO| 00001a10 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 2e 20 4f 74 |DE>y </CODE>. Ot| 00001a20 68 65 72 77 69 73 65 20 69 74 20 72 65 74 75 72 |herwise it retur| 00001a30 6e 73 20 30 20 69 66 20 0a 20 20 20 3c 43 4f 44 |ns 0 if . <COD| 00001a40 45 3e 79 20 3c 2f 43 4f 44 45 3e 20 69 73 20 7a |E>y </CODE> is z| 00001a50 65 72 6f 20 61 6e 64 20 31 20 6f 74 68 65 72 77 |ero and 1 otherw| 00001a60 69 73 65 2e 20 20 42 6f 74 68 20 0a 20 20 20 3c |ise. Both . <| 00001a70 43 4f 44 45 3e 78 2c 79 20 3c 2f 43 4f 44 45 3e |CODE>x,y </CODE>| 00001a80 20 6d 75 73 74 20 62 65 20 69 6e 74 65 67 65 72 | must be integer| 00001a90 73 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d |s...<DT><A NAME=| 00001aa0 22 61 6e 64 65 71 75 61 6c 22 3e 3c 43 4f 44 45 |"andequal"><CODE| 00001ab0 3e 26 23 33 38 3b 3d 3c 2f 43 4f 44 45 3e 3c 2f |>&=</CODE></| 00001ac0 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 26 |A>.<DD><CODE>x &| 00001ad0 23 33 38 3b 3d 20 79 20 3c 2f 43 4f 44 45 3e 20 |#38;= y </CODE> | 00001ae0 41 73 73 69 67 6e 20 3c 43 4f 44 45 3e 78 26 23 |Assign <CODE>x&#| 00001af0 33 38 3b 79 20 3c 2f 43 4f 44 45 3e 0a 20 20 20 |38;y </CODE>. | 00001b00 20 74 6f 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f | to <CODE>x </CO| 00001b10 44 45 3e 20 61 6e 64 20 74 68 65 6e 20 72 65 74 |DE> and then ret| 00001b20 75 72 6e 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f |urn <CODE>x </CO| 00001b30 44 45 3e 2e 20 42 6f 74 68 20 0a 20 20 20 3c 43 |DE>. Both . <C| 00001b40 4f 44 45 3e 78 2c 79 20 3c 2f 43 4f 44 45 3e 20 |ODE>x,y </CODE> | 00001b50 6d 75 73 74 20 62 65 20 69 6e 74 65 67 65 72 73 |must be integers| 00001b60 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00001b70 61 6e 64 32 65 71 75 61 6c 22 3e 3c 43 4f 44 45 |and2equal"><CODE| 00001b80 3e 26 23 33 38 3b 26 23 33 38 3b 3d 3c 2f 43 4f |>&&=</CO| 00001b90 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 00001ba0 45 3e 78 20 26 23 33 38 3b 26 23 33 38 3b 3d 20 |E>x &&= | 00001bb0 79 20 3c 2f 43 4f 44 45 3e 20 41 73 73 69 67 6e |y </CODE> Assign| 00001bc0 20 3c 43 4f 44 45 3e 78 26 23 33 38 3b 26 23 33 | <CODE>x&| 00001bd0 38 3b 79 20 3c 2f 43 4f 44 45 3e 0a 20 20 20 20 |8;y </CODE>. | 00001be0 74 6f 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 |to <CODE>x </COD| 00001bf0 45 3e 20 61 6e 64 20 74 68 65 6e 20 72 65 74 75 |E> and then retu| 00001c00 72 6e 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 |rn <CODE>x </COD| 00001c10 45 3e 2e 20 42 6f 74 68 20 0a 20 20 20 3c 43 4f |E>. Both . <CO| 00001c20 44 45 3e 78 2c 79 20 3c 2f 43 4f 44 45 3e 20 6d |DE>x,y </CODE> m| 00001c30 75 73 74 20 62 65 20 69 6e 74 65 67 65 72 73 2e |ust be integers.| 00001c40 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 74 |..<DT><A NAME="t| 00001c50 69 6d 65 73 22 3e 3c 43 4f 44 45 3e 2a 3c 2f 43 |imes"><CODE>*</C| 00001c60 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f |ODE></A>.<DD><CO| 00001c70 44 45 3e 78 20 2a 20 79 3c 2f 43 4f 44 45 3e 20 |DE>x * y</CODE> | 00001c80 54 68 65 20 76 61 6c 75 65 73 20 3c 43 4f 44 45 |The values <CODE| 00001c90 3e 78 2c 20 79 20 3c 2f 43 4f 44 45 3e 0a 20 20 |>x, y </CODE>. | 00001ca0 20 20 20 20 61 72 65 20 72 65 61 6c 73 20 6f 72 | are reals or| 00001cb0 20 69 6e 74 65 67 65 72 73 2e 20 54 68 65 69 72 | integers. Their| 00001cc0 20 70 72 6f 64 75 63 74 20 69 73 20 72 65 74 75 | product is retu| 00001cd0 72 6e 65 64 2e 0a 20 20 20 20 20 20 54 68 65 20 |rned.. The | 00001ce0 74 79 70 65 20 6f 66 20 74 68 65 20 72 65 73 75 |type of the resu| 00001cf0 6c 74 20 69 73 20 72 65 61 6c 20 69 66 20 65 69 |lt is real if ei| 00001d00 74 68 65 72 20 0a 20 20 20 20 20 20 3c 43 4f 44 |ther . <COD| 00001d10 45 3e 78 20 3c 2f 43 4f 44 45 3e 20 6f 72 20 3c |E>x </CODE> or <| 00001d20 43 4f 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 20 69 |CODE>y </CODE> i| 00001d30 73 20 61 20 72 65 61 6c 0a 20 20 20 20 20 20 61 |s a real. a| 00001d40 6e 64 20 69 6e 74 65 67 65 72 20 6f 74 68 65 72 |nd integer other| 00001d50 77 69 73 65 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 |wise...<DT><A NA| 00001d60 4d 45 3d 22 74 69 6d 65 73 65 71 75 61 6c 22 3e |ME="timesequal">| 00001d70 3c 43 4f 44 45 3e 2a 3d 3c 2f 43 4f 44 45 3e 3c |<CODE>*=</CODE><| 00001d80 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 |/A>.<DD><CODE>x | 00001d90 2a 3d 20 79 20 3c 2f 43 4f 44 45 3e 20 41 73 73 |*= y </CODE> Ass| 00001da0 69 67 6e 20 3c 43 4f 44 45 3e 78 2a 79 20 3c 2f |ign <CODE>x*y </| 00001db0 43 4f 44 45 3e 0a 20 20 20 20 74 6f 20 3c 43 4f |CODE>. to <CO| 00001dc0 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 20 61 6e 64 |DE>x </CODE> and| 00001dd0 20 74 68 65 6e 20 72 65 74 75 72 6e 20 3c 43 4f | then return <CO| 00001de0 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c |DE>x </CODE>...<| 00001df0 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 70 6c 75 73 |DT><A NAME="plus| 00001e00 22 3e 3c 43 4f 44 45 3e 2b 3c 2f 43 4f 44 45 3e |"><CODE>+</CODE>| 00001e10 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 |</A>.<DD><CODE>x| 00001e20 20 2b 20 79 20 3c 2f 43 4f 44 45 3e 20 49 66 20 | + y </CODE> If | 00001e30 3c 43 4f 44 45 3e 78 2c 20 79 20 3c 2f 43 4f 44 |<CODE>x, y </COD| 00001e40 45 3e 20 61 72 65 20 62 6f 74 68 20 69 6e 74 65 |E> are both inte| 00001e50 67 65 72 73 20 0a 20 20 20 20 20 20 20 20 6f 72 |gers . or| 00001e60 20 62 6f 74 68 20 72 65 61 6c 73 20 69 74 20 72 | both reals it r| 00001e70 65 74 75 72 6e 73 20 74 68 65 69 72 20 73 75 6d |eturns their sum| 00001e80 2e 20 49 66 20 0a 20 20 20 20 20 20 20 20 3c 43 |. If . <C| 00001e90 4f 44 45 3e 78 2c 20 79 20 3c 2f 43 4f 44 45 3e |ODE>x, y </CODE>| 00001ea0 20 61 72 65 20 62 6f 74 68 20 73 74 72 69 6e 67 | are both string| 00001eb0 73 20 69 74 20 72 65 74 75 72 6e 73 20 74 68 65 |s it returns the| 00001ec0 69 72 20 0a 20 20 20 20 20 20 20 20 63 6f 6e 63 |ir . conc| 00001ed0 61 74 65 6e 61 74 69 6f 6e 2e 20 49 66 20 65 69 |atenation. If ei| 00001ee0 74 68 65 72 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 |ther <CODE>x </C| 00001ef0 4f 44 45 3e 20 6f 72 20 3c 43 4f 44 45 3e 79 20 |ODE> or <CODE>y | 00001f00 3c 2f 43 4f 44 45 3e 0a 20 20 20 20 20 20 20 20 |</CODE>. | 00001f10 69 73 20 61 20 73 74 72 69 6e 67 20 61 6e 64 20 |is a string and | 00001f20 74 68 65 20 6f 74 68 65 72 20 61 72 67 75 6d 65 |the other argume| 00001f30 6e 74 20 69 73 20 61 6e 20 69 6e 74 65 67 65 72 |nt is an integer| 00001f40 2c 20 74 68 65 20 0a 20 20 20 20 20 20 20 20 6f |, the . o| 00001f50 74 68 65 72 20 61 72 67 75 6d 65 6e 74 20 69 73 |ther argument is| 00001f60 20 63 6f 6e 76 65 72 74 65 64 20 74 6f 20 74 68 | converted to th| 00001f70 65 20 73 74 72 69 6e 67 20 63 6f 6e 73 69 73 74 |e string consist| 00001f80 69 6e 67 20 0a 20 20 20 20 20 20 20 20 6f 66 20 |ing . of | 00001f90 74 68 65 20 73 69 6e 67 6c 65 20 63 68 61 72 61 |the single chara| 00001fa0 63 74 65 72 20 67 69 76 65 6e 20 62 79 20 74 68 |cter given by th| 00001fb0 65 20 41 53 43 49 49 20 63 6f 64 65 20 6f 66 20 |e ASCII code of | 00001fc0 0a 20 20 20 20 20 20 20 20 74 68 65 20 62 6f 74 |. the bot| 00001fd0 74 6f 6d 20 38 20 62 69 74 73 20 61 6e 64 20 74 |tom 8 bits and t| 00001fe0 68 65 20 72 65 73 75 6c 74 20 69 73 20 74 68 65 |he result is the| 00001ff0 20 63 6f 6e 63 61 74 65 6e 61 74 69 6f 6e 20 0a | concatenation .| 00002000 20 20 20 20 20 20 20 20 6f 66 20 74 68 65 20 74 | of the t| 00002010 77 6f 20 73 74 72 69 6e 67 73 2e 0a 0a 3c 44 54 |wo strings...<DT| 00002020 3e 3c 41 20 4e 41 4d 45 3d 22 70 6c 75 73 32 22 |><A NAME="plus2"| 00002030 3e 3c 43 4f 44 45 3e 2b 2b 3c 2f 43 4f 44 45 3e |><CODE>++</CODE>| 00002040 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 |</A>.<DD><CODE>x| 00002050 2b 2b 20 3c 2f 43 4f 44 45 3e a0 45 76 61 6c 75 |++ </CODE>.Evalu| 00002060 61 74 65 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f |ate <CODE>x </CO| 00002070 44 45 3e 20 69 6e 20 74 68 65 20 63 75 72 72 65 |DE> in the curre| 00002080 6e 74 20 0a 20 20 20 20 20 20 20 65 78 70 72 65 |nt . expre| 00002090 73 73 69 6f 6e 2c 20 61 6e 64 20 74 68 65 6e 20 |ssion, and then | 000020a0 61 73 73 69 67 6e 20 3c 43 4f 44 45 3e 78 2b 31 |assign <CODE>x+1| 000020b0 20 3c 2f 43 4f 44 45 3e 20 74 6f 20 3c 43 4f 44 | </CODE> to <COD| 000020c0 45 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 3c 44 44 |E>x </CODE>..<DD| 000020d0 3e 3c 43 4f 44 45 3e 2b 2b 78 20 3c 2f 43 4f 44 |><CODE>++x </COD| 000020e0 45 3e 20 41 73 73 69 67 6e 20 3c 43 4f 44 45 3e |E> Assign <CODE>| 000020f0 78 2b 31 20 3c 2f 43 4f 44 45 3e 20 74 6f 20 3c |x+1 </CODE> to <| 00002100 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 0a 20 |CODE>x </CODE>. | 00002110 20 20 20 20 20 20 62 65 66 6f 72 65 20 66 75 72 | before fur| 00002120 74 68 65 72 20 65 76 61 6c 75 61 74 69 6f 6e 2e |ther evaluation.| 00002130 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 70 |..<DT><A NAME="p| 00002140 6c 75 73 65 71 75 61 6c 22 3e 3c 43 4f 44 45 3e |lusequal"><CODE>| 00002150 2b 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |+=</CODE></A>.<D| 00002160 44 3e 3c 43 4f 44 45 3e 78 20 2b 3d 20 79 20 3c |D><CODE>x += y <| 00002170 2f 43 4f 44 45 3e 20 20 41 73 73 69 67 6e 20 3c |/CODE> Assign <| 00002180 43 4f 44 45 3e 78 2b 79 20 3c 2f 43 4f 44 45 3e |CODE>x+y </CODE>| 00002190 20 74 6f 20 0a 20 20 20 20 20 20 3c 43 4f 44 45 | to . <CODE| 000021a0 3e 78 20 3c 2f 43 4f 44 45 3e 2c 20 61 6e 64 20 |>x </CODE>, and | 000021b0 72 65 74 75 72 6e 20 3c 43 4f 44 45 3e 78 20 3c |return <CODE>x <| 000021c0 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 |/CODE>...<DT><A | 000021d0 4e 41 4d 45 3d 22 6d 69 6e 75 73 22 3e 3c 43 4f |NAME="minus"><CO| 000021e0 44 45 3e 2d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |DE>-</CODE></A>.| 000021f0 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 2d 20 79 20 |<DD><CODE>x - y | 00002200 3c 2f 43 4f 44 45 3e 20 54 68 65 20 76 61 6c 75 |</CODE> The valu| 00002210 65 73 20 3c 43 4f 44 45 3e 78 2c 20 79 20 3c 2f |es <CODE>x, y </| 00002220 43 4f 44 45 3e 20 61 72 65 0a 20 20 20 20 20 62 |CODE> are. b| 00002230 6f 74 68 20 69 6e 74 65 67 65 72 73 20 6f 72 20 |oth integers or | 00002240 62 6f 74 68 20 72 65 61 6c 73 2e 20 54 68 65 69 |both reals. Thei| 00002250 72 20 64 69 66 66 65 72 65 6e 63 65 20 69 73 20 |r difference is | 00002260 72 65 74 75 72 6e 65 64 2e 0a 0a 3c 44 54 3e 3c |returned...<DT><| 00002270 41 20 4e 41 4d 45 3d 22 6d 69 6e 75 73 32 22 3e |A NAME="minus2">| 00002280 3c 43 4f 44 45 3e 2d 2d 3c 2f 43 4f 44 45 3e 3c |<CODE>--</CODE><| 00002290 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 2d |/A>.<DD><CODE>x-| 000022a0 2d 20 3c 2f 43 4f 44 45 3e a0 45 76 61 6c 75 61 |- </CODE>.Evalua| 000022b0 74 65 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 |te <CODE>x </COD| 000022c0 45 3e 20 69 6e 20 74 68 65 20 63 75 72 72 65 6e |E> in the curren| 000022d0 74 20 0a 20 20 20 20 20 20 20 65 78 70 72 65 73 |t . expres| 000022e0 73 69 6f 6e 2c 20 61 6e 64 20 74 68 65 6e 20 61 |sion, and then a| 000022f0 73 73 69 67 6e 20 3c 43 4f 44 45 3e 78 2d 31 20 |ssign <CODE>x-1 | 00002300 3c 2f 43 4f 44 45 3e 20 74 6f 20 3c 43 4f 44 45 |</CODE> to <CODE| 00002310 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 3c 44 44 3e |>x </CODE>..<DD>| 00002320 3c 43 4f 44 45 3e 2d 2d 78 20 3c 2f 43 4f 44 45 |<CODE>--x </CODE| 00002330 3e 20 41 73 73 69 67 6e 20 3c 43 4f 44 45 3e 78 |> Assign <CODE>x| 00002340 2d 31 20 3c 2f 43 4f 44 45 3e 20 74 6f 20 3c 43 |-1 </CODE> to <C| 00002350 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 0a 20 20 |ODE>x </CODE>. | 00002360 20 20 20 20 20 62 65 66 6f 72 65 20 66 75 72 74 | before furt| 00002370 68 65 72 20 65 76 61 6c 75 61 74 69 6f 6e 2e 0a |her evaluation..| 00002380 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 6d 69 |.<DT><A NAME="mi| 00002390 6e 75 73 65 71 75 61 6c 22 3e 3c 43 4f 44 45 3e |nusequal"><CODE>| 000023a0 2d 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |-=</CODE></A>.<D| 000023b0 44 3e 3c 43 4f 44 45 3e 78 20 2d 3d 20 79 20 3c |D><CODE>x -= y <| 000023c0 2f 43 4f 44 45 3e 20 20 41 73 73 69 67 6e 20 3c |/CODE> Assign <| 000023d0 43 4f 44 45 3e 78 2d 79 20 3c 2f 43 4f 44 45 3e |CODE>x-y </CODE>| 000023e0 20 74 6f 20 0a 20 20 20 20 20 20 3c 43 4f 44 45 | to . <CODE| 000023f0 3e 78 20 3c 2f 43 4f 44 45 3e 2c 20 61 6e 64 20 |>x </CODE>, and | 00002400 72 65 74 75 72 6e 20 3c 43 4f 44 45 3e 78 20 3c |return <CODE>x <| 00002410 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 |/CODE>...<DT><A | 00002420 4e 41 4d 45 3d 22 64 69 76 69 64 65 22 3e 3c 2f |NAME="divide"></| 00002430 41 3e 3c 43 4f 44 45 3e 2f 3c 2f 43 4f 44 45 3e |A><CODE>/</CODE>| 00002440 3c 2f 41 3e 0a 3c 44 44 3e 3c 2f 41 3e 3c 43 4f |</A>.<DD></A><CO| 00002450 44 45 3e 78 20 2f 20 79 20 3c 2f 43 4f 44 45 3e |DE>x / y </CODE>| 00002460 3c 2f 41 3e 20 49 66 20 3c 43 4f 44 45 3e 78 20 |</A> If <CODE>x | 00002470 3c 2f 43 4f 44 45 3e 20 69 73 20 61 6e 20 0a 20 |</CODE> is an . | 00002480 20 20 20 20 20 69 6e 74 65 67 65 72 2c 20 74 68 | integer, th| 00002490 65 6e 20 73 6f 20 6d 75 73 74 20 3c 43 4f 44 45 |en so must <CODE| 000024a0 3e 79 20 3c 2f 43 4f 44 45 3e 20 62 65 20 61 6e |>y </CODE> be an| 000024b0 64 20 61 6e 20 69 6e 74 65 67 65 72 0a 20 20 20 |d an integer. | 000024c0 20 20 20 61 6e 64 20 74 68 65 69 72 20 71 75 6f | and their quo| 000024d0 74 69 65 6e 74 20 69 73 20 72 65 74 75 72 6e 65 |tient is returne| 000024e0 64 2e 20 49 66 20 3c 43 4f 44 45 3e 78 20 3c 2f |d. If <CODE>x </| 000024f0 43 4f 44 45 3e 20 69 73 20 72 65 61 6c 20 0a 20 |CODE> is real . | 00002500 20 20 20 20 20 3c 43 4f 44 45 3e 79 20 3c 2f 43 | <CODE>y </C| 00002510 4f 44 45 3e 20 6d 61 79 20 62 65 20 65 69 74 68 |ODE> may be eith| 00002520 65 72 20 61 6e 20 69 6e 74 65 67 65 72 20 6f 72 |er an integer or| 00002530 20 61 20 72 65 61 6c 20 61 6e 64 20 0a 20 20 20 | a real and . | 00002540 20 20 20 74 68 65 20 72 65 61 6c 20 71 75 6f 74 | the real quot| 00002550 69 65 6e 74 20 69 73 20 72 65 74 75 72 6e 65 64 |ient is returned| 00002560 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00002570 64 69 76 69 64 65 65 71 75 61 6c 22 3e 3c 43 4f |divideequal"><CO| 00002580 44 45 3e 2f 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |DE>/=</CODE></A>| 00002590 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 2f 3d 20 |.<DD><CODE>x /= | 000025a0 79 20 3c 2f 43 4f 44 45 3e 20 20 41 73 73 69 67 |y </CODE> Assig| 000025b0 6e 20 3c 43 4f 44 45 3e 78 2f 79 20 3c 2f 43 4f |n <CODE>x/y </CO| 000025c0 44 45 3e 20 74 6f 20 0a 20 20 20 20 20 20 3c 43 |DE> to . <C| 000025d0 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2c 20 61 |ODE>x </CODE>, a| 000025e0 6e 64 20 72 65 74 75 72 6e 20 3c 43 4f 44 45 3e |nd return <CODE>| 000025f0 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e |x </CODE>...<DT>| 00002600 3c 41 20 4e 41 4d 45 3d 22 61 72 72 6f 77 22 3e |<A NAME="arrow">| 00002610 3c 43 4f 44 45 3e 2d 26 67 74 3b 3c 2f 43 4f 44 |<CODE>-></COD| 00002620 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 |E></A>.<DD><CODE| 00002630 3e 6d 79 69 6e 73 74 61 6e 63 65 2d 26 67 74 3b |>myinstance->| 00002640 6d 79 6d 65 74 68 6f 64 20 3c 2f 43 4f 44 45 3e |mymethod </CODE>| 00002650 20 69 73 20 74 68 65 20 66 75 6e 63 74 69 6f 6e | is the function| 00002660 20 6f 62 74 61 69 6e 65 64 0a 77 68 65 6e 20 6d | obtained.when m| 00002670 65 74 68 6f 64 20 3c 43 4f 44 45 3e 6d 79 6d 65 |ethod <CODE>myme| 00002680 74 68 6f 64 20 3c 2f 43 4f 44 45 3e 20 69 73 20 |thod </CODE> is | 00002690 69 6e 73 74 61 6e 74 69 61 74 65 64 20 66 6f 72 |instantiated for| 000026a0 20 74 68 65 20 69 6e 73 74 61 6e 63 65 0a 3c 43 | the instance.<C| 000026b0 4f 44 45 3e 6d 79 69 6e 73 74 61 6e 63 65 20 3c |ODE>myinstance <| 000026c0 2f 43 4f 44 45 3e 2e 0a 3c 44 44 3e 20 45 2e 67 |/CODE>..<DD> E.g| 000026d0 2e 20 3c 43 4f 44 45 3e 70 72 69 6e 74 28 26 71 |. <CODE>print(&q| 000026e0 75 6f 74 3b 54 68 65 20 78 2d 63 6f 6f 72 64 69 |uot;The x-coordi| 000026f0 6e 61 74 65 20 6f 66 20 76 65 72 74 65 78 20 69 |nate of vertex i| 00002700 73 20 26 71 75 6f 74 3b 2c 0a 20 20 20 20 20 20 |s ",. | 00002710 20 20 20 20 20 20 20 20 20 20 76 65 72 74 65 78 | vertex| 00002720 2d 26 67 74 3b 78 28 29 2c 26 71 75 6f 74 3b 5c |->x(),"\| 00002730 6e 26 71 75 6f 74 29 3b 3c 2f 43 4f 44 45 3e 0a |n");</CODE>.| 00002740 3c 44 44 3e 45 61 63 68 20 69 6e 73 74 61 6e 63 |<DD>Each instanc| 00002750 65 20 6f 62 6a 65 63 74 20 6f 66 20 61 20 63 6c |e object of a cl| 00002760 61 73 73 20 68 61 73 20 69 74 73 20 6f 77 6e 20 |ass has its own | 00002770 70 72 69 76 61 74 65 20 63 6f 70 79 0a 20 20 20 |private copy. | 00002780 20 6f 66 20 74 68 65 20 63 6c 61 73 73 27 73 20 | of the class's | 00002790 64 61 74 61 2c 20 77 68 69 63 68 20 63 61 6e 20 |data, which can | 000027a0 6f 6e 6c 79 20 62 65 20 75 70 64 61 74 65 64 20 |only be updated | 000027b0 6f 72 20 61 63 63 65 73 73 65 64 0a 20 20 20 20 |or accessed. | 000027c0 75 73 69 6e 67 20 61 20 20 6d 65 74 68 6f 64 2e |using a method.| 000027d0 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 63 |..<DT><A NAME="c| 000027e0 6f 6c 6f 6e 22 3e 3c 43 4f 44 45 3e 3a 3c 2f 43 |olon"><CODE>:</C| 000027f0 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f |ODE></A>.<DD><CO| 00002800 44 45 3e 63 3f 79 65 73 3a 6e 6f 20 3c 2f 43 4f |DE>c?yes:no </CO| 00002810 44 45 3e 20 73 65 65 20 3c 41 20 48 52 45 46 3d |DE> see <A HREF=| 00002820 22 23 71 75 65 72 79 3e 20 3f 3c 2f 41 3e 2e 0a |"#query> ?</A>..| 00002830 3c 44 44 3e 3c 43 4f 44 45 3e 63 6c 61 73 73 20 |<DD><CODE>class | 00002840 63 68 69 6c 64 3a 70 61 72 65 6e 74 20 7b 20 2e |child:parent { .| 00002850 2e 2e 20 7d 20 3c 2f 43 4f 44 45 3e 20 64 65 63 |.. } </CODE> dec| 00002860 6c 61 72 65 73 0a 20 20 20 20 3c 43 4f 44 45 3e |lares. <CODE>| 00002870 20 63 68 69 6c 64 20 3c 2f 43 4f 44 45 3e 20 61 | child </CODE> a| 00002880 73 20 61 20 73 75 62 63 6c 61 73 73 20 6f 66 20 |s a subclass of | 00002890 3c 43 4f 44 45 3e 20 70 61 72 65 6e 74 20 3c 2f |<CODE> parent </| 000028a0 43 4f 44 45 3e 2e 0a 20 20 20 20 49 6e 73 74 61 |CODE>.. Insta| 000028b0 6e 63 65 20 6f 62 6a 65 63 74 73 20 6f 66 20 3c |nce objects of <| 000028c0 43 4f 44 45 3e 20 63 68 69 6c 64 20 3c 2f 43 4f |CODE> child </CO| 000028d0 44 45 3e 20 68 61 76 65 20 61 63 63 65 73 73 20 |DE> have access | 000028e0 74 6f 20 74 68 65 0a 20 20 20 20 6d 65 74 68 6f |to the. metho| 000028f0 64 73 20 6f 66 20 3c 43 4f 44 45 3e 20 70 61 72 |ds of <CODE> par| 00002900 65 6e 74 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 |ent </CODE>...<D| 00002910 54 3e 3c 41 20 4e 41 4d 45 3d 22 63 6f 6c 6f 6e |T><A NAME="colon| 00002920 32 22 3e 3c 43 4f 44 45 3e 3a 3a 3c 2f 43 4f 44 |2"><CODE>::</COD| 00002930 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 |E></A>.<DD><CODE| 00002940 3e 6d 79 63 6c 61 73 73 3a 3a 6d 79 6d 65 74 68 |>myclass::mymeth| 00002950 6f 64 28 29 20 3c 2f 43 4f 44 45 3e 20 64 65 63 |od() </CODE> dec| 00002960 6c 61 72 65 73 20 0a 20 20 20 20 3c 43 4f 44 45 |lares . <CODE| 00002970 3e 6d 79 6d 65 74 68 6f 64 28 29 3c 2f 43 4f 44 |>mymethod()</COD| 00002980 45 3e 20 74 6f 20 62 65 20 61 20 6d 65 74 68 6f |E> to be a metho| 00002990 64 20 66 6f 72 20 74 68 65 0a 20 20 20 20 3c 41 |d for the. <A| 000029a0 20 48 52 45 46 3d 22 23 63 6c 61 73 73 22 3e 63 | HREF="#class">c| 000029b0 6c 61 73 73 20 3c 2f 41 3e 20 3c 43 4f 44 45 3e |lass </A> <CODE>| 000029c0 6d 79 63 6c 61 73 73 3c 2f 43 4f 44 45 3e 2e 20 |myclass</CODE>. | 000029d0 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 6c |..<DT><A NAME="l| 000029e0 65 73 73 74 68 61 6e 22 3e 3c 43 4f 44 45 3e 26 |essthan"><CODE>&| 000029f0 6c 74 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c |lt;</CODE></A>.<| 00002a00 44 44 3e 3c 43 4f 44 45 3e 78 20 26 6c 74 3b 20 |DD><CODE>x < | 00002a10 79 20 3c 2f 43 4f 44 45 3e 20 54 68 65 20 76 61 |y </CODE> The va| 00002a20 6c 75 65 73 20 3c 43 4f 44 45 3e 78 2c 20 79 20 |lues <CODE>x, y | 00002a30 3c 2f 43 4f 44 45 3e 20 61 72 65 0a 20 20 20 20 |</CODE> are. | 00002a40 20 20 20 62 6f 74 68 20 69 6e 74 65 67 65 72 73 | both integers| 00002a50 2c 20 73 74 72 69 6e 67 73 20 6f 72 20 72 65 61 |, strings or rea| 00002a60 6c 73 2e 20 49 74 20 72 65 74 75 72 6e 73 20 31 |ls. It returns 1| 00002a70 0a 20 20 20 20 20 20 20 69 66 20 3c 43 4f 44 45 |. if <CODE| 00002a80 3e 78 20 3c 2f 43 4f 44 45 3e 20 73 74 72 69 63 |>x </CODE> stric| 00002a90 74 6c 79 20 70 72 65 63 65 64 65 73 20 3c 43 4f |tly precedes <CO| 00002aa0 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 2c 20 0a 20 |DE>y </CODE>, . | 00002ab0 20 20 20 20 20 20 6f 74 68 65 72 77 69 73 65 20 | otherwise | 00002ac0 69 74 20 72 65 74 75 72 6e 73 20 30 2e 0a 0a 3c |it returns 0...<| 00002ad0 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 6c 65 73 73 |DT><A NAME="less| 00002ae0 74 68 61 6e 32 22 3e 3c 43 4f 44 45 3e 26 6c 74 |than2"><CODE><| 00002af0 3b 26 6c 74 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |;<</CODE></A>| 00002b00 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 26 6c 74 |.<DD><CODE>x <| 00002b10 3b 26 6c 74 3b 20 79 20 3c 2f 43 4f 44 45 3e 20 |;< y </CODE> | 00002b20 49 66 20 3c 43 4f 44 45 3e 78 2c 20 79 20 3c 2f |If <CODE>x, y </| 00002b30 43 4f 44 45 3e 20 61 72 65 20 0a 20 20 20 20 20 |CODE> are . | 00002b40 20 20 20 62 6f 74 68 20 69 6e 74 65 67 65 72 73 | both integers| 00002b50 20 69 74 20 72 65 74 75 72 6e 73 20 3c 43 4f 44 | it returns <COD| 00002b60 45 3e 78 20 3c 2f 43 4f 44 45 3e 20 73 68 69 66 |E>x </CODE> shif| 00002b70 74 65 64 20 6c 65 66 74 20 62 79 0a 20 20 20 20 |ted left by. | 00002b80 20 20 20 20 3c 43 4f 44 45 3e 79 20 3c 2f 43 4f | <CODE>y </CO| 00002b90 44 45 3e 20 62 69 74 73 2e 20 49 66 20 3c 43 4f |DE> bits. If <CO| 00002ba0 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 20 69 73 20 |DE>x </CODE> is | 00002bb0 61 6e 20 69 6f 73 74 72 65 61 6d 20 61 6e 64 20 |an iostream and | 00002bc0 0a 20 20 20 20 20 20 20 20 3c 43 4f 44 45 3e 79 |. <CODE>y| 00002bd0 20 3c 2f 43 4f 44 45 3e 20 61 20 73 74 72 69 6e | </CODE> a strin| 00002be0 67 2c 20 69 74 20 6f 75 74 70 75 74 73 20 3c 43 |g, it outputs <C| 00002bf0 4f 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 20 74 6f |ODE>y </CODE> to| 00002c00 20 0a 20 20 20 20 20 20 20 20 3c 43 4f 44 45 3e | . <CODE>| 00002c10 78 20 3c 2f 43 4f 44 45 3e 20 61 6e 64 20 72 65 |x </CODE> and re| 00002c20 74 75 72 6e 73 20 74 68 65 20 72 65 73 75 6c 74 |turns the result| 00002c30 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e | <CODE>x </CODE>| 00002c40 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00002c50 6c 65 73 73 74 68 61 6e 65 71 75 61 6c 22 3e 3c |lessthanequal"><| 00002c60 43 4f 44 45 3e 26 6c 74 3b 3d 3c 2f 43 4f 44 45 |CODE><=</CODE| 00002c70 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e |></A>.<DD><CODE>| 00002c80 78 20 26 6c 74 3b 3d 20 79 20 3c 2f 43 4f 44 45 |x <= y </CODE| 00002c90 3e 20 54 68 65 20 76 61 6c 75 65 73 20 3c 43 4f |> The values <CO| 00002ca0 44 45 3e 78 2c 20 79 20 3c 2f 43 4f 44 45 3e 20 |DE>x, y </CODE> | 00002cb0 61 72 65 0a 20 20 20 20 20 20 20 62 6f 74 68 20 |are. both | 00002cc0 69 6e 74 65 67 65 72 73 2c 20 73 74 72 69 6e 67 |integers, string| 00002cd0 73 20 6f 72 20 72 65 61 6c 73 2e 20 49 74 20 72 |s or reals. It r| 00002ce0 65 74 75 72 6e 73 20 31 0a 20 20 20 20 20 20 20 |eturns 1. | 00002cf0 69 66 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 |if <CODE>x </COD| 00002d00 45 3e 20 70 72 65 63 65 64 65 73 20 6f 72 20 65 |E> precedes or e| 00002d10 71 75 61 6c 73 20 3c 43 4f 44 45 3e 79 20 3c 2f |quals <CODE>y </| 00002d20 43 4f 44 45 3e 2c 20 0a 20 20 20 20 20 20 20 6f |CODE>, . o| 00002d30 74 68 65 72 77 69 73 65 20 69 74 20 72 65 74 75 |therwise it retu| 00002d40 72 6e 73 20 30 2e 0a 0a 3c 44 54 3e 3c 41 20 4e |rns 0...<DT><A N| 00002d50 41 4d 45 3d 22 6c 65 73 73 74 68 61 6e 32 65 71 |AME="lessthan2eq| 00002d60 75 61 6c 22 3e 3c 43 4f 44 45 3e 26 6c 74 3b 26 |ual"><CODE><&| 00002d70 6c 74 3b 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |lt;=</CODE></A>.| 00002d80 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 26 6c 74 3b |<DD><CODE>x <| 00002d90 26 6c 74 3b 3d 20 79 20 3c 2f 43 4f 44 45 3e 20 |<= y </CODE> | 00002da0 20 41 73 73 69 67 6e 20 3c 43 4f 44 45 3e 78 26 | Assign <CODE>x&| 00002db0 6c 74 3b 26 6c 74 3b 79 20 3c 2f 43 4f 44 45 3e |lt;<y </CODE>| 00002dc0 20 74 6f 20 0a 20 20 20 20 20 20 3c 43 4f 44 45 | to . <CODE| 00002dd0 3e 78 20 3c 2f 43 4f 44 45 3e 2c 20 61 6e 64 20 |>x </CODE>, and | 00002de0 72 65 74 75 72 6e 20 3c 43 4f 44 45 3e 78 20 3c |return <CODE>x <| 00002df0 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 |/CODE>...<DT><A | 00002e00 4e 41 4d 45 3d 22 61 73 73 69 67 6e 22 3e 3c 43 |NAME="assign"><C| 00002e10 4f 44 45 3e 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |ODE>=</CODE></A>| 00002e20 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 3d 20 79 |.<DD><CODE>x = y| 00002e30 20 3c 2f 43 4f 44 45 3e 20 41 73 73 69 67 6e 20 | </CODE> Assign | 00002e40 3c 43 4f 44 45 3e 79 20 3c 2f 43 4f 44 45 3e 20 |<CODE>y </CODE> | 00002e50 74 6f 20 0a 20 20 20 20 3c 43 4f 44 45 3e 78 20 |to . <CODE>x | 00002e60 3c 2f 43 4f 44 45 3e 20 61 6e 64 20 72 65 74 75 |</CODE> and retu| 00002e70 72 6e 20 74 68 61 74 20 76 61 6c 75 65 2e 0a 0a |rn that value...| 00002e80 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 65 71 75 |<DT><A NAME="equ| 00002e90 61 6c 22 3e 3c 43 4f 44 45 3e 3d 3d 3c 2f 43 4f |al"><CODE>==</CO| 00002ea0 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 00002eb0 45 3e 78 20 3d 3d 20 79 20 3c 2f 43 4f 44 45 3e |E>x == y </CODE>| 00002ec0 20 54 68 65 20 76 61 6c 75 65 73 20 3c 43 4f 44 | The values <COD| 00002ed0 45 3e 78 2c 20 79 20 3c 2f 43 4f 44 45 3e 20 61 |E>x, y </CODE> a| 00002ee0 72 65 0a 20 20 20 20 20 20 62 6f 74 68 20 69 6e |re. both in| 00002ef0 74 65 67 65 72 73 2c 20 73 74 72 69 6e 67 73 20 |tegers, strings | 00002f00 6f 72 20 72 65 61 6c 73 2e 20 49 74 20 72 65 74 |or reals. It ret| 00002f10 75 72 6e 73 20 30 0a 20 20 20 20 20 20 69 66 20 |urns 0. if | 00002f20 74 68 65 79 20 61 72 65 20 64 69 66 66 65 72 65 |they are differe| 00002f30 6e 74 20 61 6e 64 20 31 20 69 66 20 74 68 65 79 |nt and 1 if they| 00002f40 20 61 72 65 20 65 71 75 61 6c 2e 0a 0a 3c 44 54 | are equal...<DT| 00002f50 3e 3c 41 20 4e 41 4d 45 3d 22 67 72 65 61 74 65 |><A NAME="greate| 00002f60 72 22 3e 3c 43 4f 44 45 3e 26 67 74 3b 3c 2f 43 |r"><CODE>></C| 00002f70 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f |ODE></A>.<DD><CO| 00002f80 44 45 3e 78 20 26 67 74 3b 20 79 20 3c 2f 43 4f |DE>x > y </CO| 00002f90 44 45 3e 20 54 68 65 20 76 61 6c 75 65 73 20 3c |DE> The values <| 00002fa0 43 4f 44 45 3e 78 2c 20 79 20 3c 2f 43 4f 44 45 |CODE>x, y </CODE| 00002fb0 3e 20 61 72 65 0a 20 20 20 20 20 20 62 6f 74 68 |> are. both| 00002fc0 20 69 6e 74 65 67 65 72 73 2c 20 73 74 72 69 6e | integers, strin| 00002fd0 67 73 20 6f 72 20 72 65 61 6c 73 2e 20 49 74 20 |gs or reals. It | 00002fe0 72 65 74 75 72 6e 73 20 31 20 69 66 0a 20 20 20 |returns 1 if. | 00002ff0 20 20 20 69 66 20 3c 43 4f 44 45 3e 79 20 3c 2f | if <CODE>y </| 00003000 43 4f 44 45 3e 20 73 74 72 69 63 74 6c 79 20 70 |CODE> strictly p| 00003010 72 65 63 65 64 65 73 20 3c 43 4f 44 45 3e 78 20 |recedes <CODE>x | 00003020 3c 2f 43 4f 44 45 3e 2c 20 0a 20 20 20 20 20 20 |</CODE>, . | 00003030 6f 74 68 65 72 77 69 73 65 20 69 74 20 72 65 74 |otherwise it ret| 00003040 75 72 6e 73 20 30 2e 0a 0a 3c 44 54 3e 3c 41 20 |urns 0...<DT><A | 00003050 4e 41 4d 45 3d 22 67 72 65 61 74 65 72 65 71 75 |NAME="greaterequ| 00003060 61 6c 22 3e 3c 43 4f 44 45 3e 26 67 74 3b 3d 3c |al"><CODE>>=<| 00003070 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c |/CODE></A>.<DD><| 00003080 43 4f 44 45 3e 78 20 26 67 74 3b 3d 20 79 20 3c |CODE>x >= y <| 00003090 2f 43 4f 44 45 3e 20 54 68 65 20 76 61 6c 75 65 |/CODE> The value| 000030a0 73 20 3c 43 4f 44 45 3e 78 2c 20 79 20 3c 2f 43 |s <CODE>x, y </C| 000030b0 4f 44 45 3e 20 61 72 65 0a 20 20 20 20 20 20 62 |ODE> are. b| 000030c0 6f 74 68 20 69 6e 74 65 67 65 72 73 2c 20 73 74 |oth integers, st| 000030d0 72 69 6e 67 73 20 6f 72 20 72 65 61 6c 73 2e 20 |rings or reals. | 000030e0 49 74 20 72 65 74 75 72 6e 73 20 31 20 69 66 0a |It returns 1 if.| 000030f0 20 20 20 20 20 20 69 66 20 3c 43 4f 44 45 3e 79 | if <CODE>y| 00003100 20 3c 2f 43 4f 44 45 3e 20 70 72 65 63 65 64 65 | </CODE> precede| 00003110 73 20 6f 72 20 65 71 75 61 6c 73 20 3c 43 4f 44 |s or equals <COD| 00003120 45 3e 78 20 3c 2f 43 4f 44 45 3e 2c 20 0a 20 20 |E>x </CODE>, . | 00003130 20 20 20 20 6f 74 68 65 72 77 69 73 65 20 69 74 | otherwise it| 00003140 20 72 65 74 75 72 6e 73 20 30 2e 0a 0a 3c 44 54 | returns 0...<DT| 00003150 3e 3c 41 20 4e 41 4d 45 3d 22 67 72 65 61 74 65 |><A NAME="greate| 00003160 72 32 22 3e 3c 43 4f 44 45 3e 26 67 74 3b 26 67 |r2"><CODE>>&g| 00003170 74 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |t;</CODE></A>.<D| 00003180 44 3e 3c 43 4f 44 45 3e 78 20 26 67 74 3b 26 67 |D><CODE>x >&g| 00003190 74 3b 20 79 20 3c 2f 43 4f 44 45 3e 20 54 68 65 |t; y </CODE> The| 000031a0 20 76 61 6c 75 65 73 20 3c 43 4f 44 45 3e 78 2c | values <CODE>x,| 000031b0 20 79 20 3c 2f 43 4f 44 45 3e 20 61 72 65 0a 20 | y </CODE> are. | 000031c0 20 20 20 20 20 20 62 6f 74 68 20 69 6e 74 65 67 | both integ| 000031d0 65 72 73 2e 20 49 74 20 72 65 74 75 72 6e 73 20 |ers. It returns | 000031e0 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 20 |<CODE>x </CODE> | 000031f0 61 72 69 74 68 6d 65 74 69 63 61 6c 6c 79 20 73 |arithmetically s| 00003200 68 69 66 74 65 64 0a 20 20 20 20 20 20 20 72 69 |hifted. ri| 00003210 67 68 74 20 62 79 20 3c 43 4f 44 45 3e 79 20 3c |ght by <CODE>y <| 00003220 2f 43 4f 44 45 3e 20 62 69 74 73 2e 0a 0a 3c 44 |/CODE> bits...<D| 00003230 54 3e 3c 41 20 4e 41 4d 45 3d 22 67 72 65 61 74 |T><A NAME="great| 00003240 65 72 32 65 71 75 61 6c 22 3e 3c 43 4f 44 45 3e |er2equal"><CODE>| 00003250 26 67 74 3b 26 67 74 3b 3d 3c 2f 43 4f 44 45 3e |>>=</CODE>| 00003260 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 |</A>.<DD><CODE>x| 00003270 20 26 67 74 3b 26 67 74 3b 3d 20 79 20 3c 2f 43 | >>= y </C| 00003280 4f 44 45 3e 20 20 41 73 73 69 67 6e 20 3c 43 4f |ODE> Assign <CO| 00003290 44 45 3e 78 26 67 74 3b 26 67 74 3b 79 20 3c 2f |DE>x>>y </| 000032a0 43 4f 44 45 3e 20 74 6f 20 0a 20 20 20 20 20 20 |CODE> to . | 000032b0 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2c |<CODE>x </CODE>,| 000032c0 20 61 6e 64 20 72 65 74 75 72 6e 20 3c 43 4f 44 | and return <COD| 000032d0 45 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 |E>x </CODE>...<D| 000032e0 54 3e 3c 41 20 4e 41 4d 45 3d 22 71 75 65 72 79 |T><A NAME="query| 000032f0 22 3e 3c 43 4f 44 45 3e 3f 3c 2f 43 4f 44 45 3e |"><CODE>?</CODE>| 00003300 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 63 |</A>.<DD><CODE>c| 00003310 3f 79 65 73 3a 6e 6f 20 3c 2f 43 4f 44 45 3e 20 |?yes:no </CODE> | 00003320 54 68 65 20 76 61 6c 75 65 20 3c 43 4f 44 45 3e |The value <CODE>| 00003330 63 20 3c 2f 43 4f 44 45 3e 20 61 6e 20 69 6e 74 |c </CODE> an int| 00003340 65 67 65 72 2e 20 0a 20 20 20 20 20 49 66 20 69 |eger. . If i| 00003350 74 20 69 73 20 6e 6f 6e 7a 65 72 6f 2c 20 74 68 |t is nonzero, th| 00003360 65 20 65 78 70 72 65 73 73 69 6f 6e 20 65 76 61 |e expression eva| 00003370 6c 75 61 74 65 73 20 61 6e 64 20 72 65 74 75 72 |luates and retur| 00003380 6e 73 20 0a 20 20 20 20 20 74 68 65 20 76 61 6c |ns . the val| 00003390 75 65 20 6f 66 20 3c 43 4f 44 45 3e 79 65 73 20 |ue of <CODE>yes | 000033a0 3c 2f 43 4f 44 45 3e 20 28 3c 43 4f 44 45 3e 6e |</CODE> (<CODE>n| 000033b0 6f 20 3c 2f 43 4f 44 45 3e 20 69 73 20 0a 20 20 |o </CODE> is . | 000033c0 20 20 20 6e 6f 74 20 65 76 61 6c 75 61 74 65 64 | not evaluated| 000033d0 29 2c 20 6f 74 68 65 72 77 69 73 65 20 69 74 20 |), otherwise it | 000033e0 65 76 61 6c 75 61 74 65 73 20 61 6e 64 20 72 65 |evaluates and re| 000033f0 74 75 72 6e 73 0a 20 20 20 20 20 74 68 65 20 76 |turns. the v| 00003400 61 6c 75 65 20 6f 66 20 3c 43 4f 44 45 3e 6e 6f |alue of <CODE>no| 00003410 20 3c 2f 43 4f 44 45 3e 20 28 3c 43 4f 44 45 3e | </CODE> (<CODE>| 00003420 79 65 73 20 3c 2f 43 4f 44 45 3e 20 69 73 20 6e |yes </CODE> is n| 00003430 6f 74 20 65 76 61 6c 75 61 74 65 64 29 2e 0a 0a |ot evaluated)...| 00003440 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 68 61 74 |<DT><A NAME="hat| 00003450 22 3e 3c 43 4f 44 45 3e 5e 3c 2f 43 4f 44 45 3e |"><CODE>^</CODE>| 00003460 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 |</A>.<DD><CODE>x| 00003470 20 5e 20 79 20 3c 2f 43 4f 44 45 3e 20 20 42 6f | ^ y </CODE> Bo| 00003480 74 68 20 3c 43 4f 44 45 3e 78 2c 20 79 20 3c 2f |th <CODE>x, y </| 00003490 43 4f 44 45 3e 20 61 72 65 20 69 6e 74 65 67 65 |CODE> are intege| 000034a0 72 73 2e 20 0a 20 20 20 20 52 65 74 75 72 6e 73 |rs. . Returns| 000034b0 20 74 68 65 20 62 69 74 77 69 73 65 20 58 4f 52 | the bitwise XOR| 000034c0 20 6f 66 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f | of <CODE>x </CO| 000034d0 44 45 3e 20 61 6e 64 20 3c 43 4f 44 45 3e 79 20 |DE> and <CODE>y | 000034e0 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 |</CODE>...<DT><A| 000034f0 20 4e 41 4d 45 3d 22 68 61 74 65 71 75 61 6c 22 | NAME="hatequal"| 00003500 3e 3c 43 4f 44 45 3e 5e 3d 3c 2f 43 4f 44 45 3e |><CODE>^=</CODE>| 00003510 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 |</A>.<DD><CODE>x| 00003520 20 5e 3d 20 79 20 3c 2f 43 4f 44 45 3e 20 20 41 | ^= y </CODE> A| 00003530 73 73 69 67 6e 20 3c 43 4f 44 45 3e 78 5e 79 20 |ssign <CODE>x^y | 00003540 3c 2f 43 4f 44 45 3e 20 74 6f 20 0a 20 20 20 20 |</CODE> to . | 00003550 20 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 | <CODE>x </CODE| 00003560 3e 2c 20 61 6e 64 20 72 65 74 75 72 6e 20 3c 43 |>, and return <C| 00003570 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a |ODE>x </CODE>...| 00003580 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 6f 72 22 |<DT><A NAME="or"| 00003590 3e 3c 43 4f 44 45 3e 7c 3c 2f 43 4f 44 45 3e 3c |><CODE>|</CODE><| 000035a0 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 |/A>.<DD><CODE>x | 000035b0 7c 20 79 20 3c 2f 43 4f 44 45 3e 20 20 42 6f 74 || y </CODE> Bot| 000035c0 68 20 3c 43 4f 44 45 3e 78 2c 20 79 20 3c 2f 43 |h <CODE>x, y </C| 000035d0 4f 44 45 3e 20 61 72 65 20 69 6e 74 65 67 65 72 |ODE> are integer| 000035e0 73 2e 20 0a 20 20 20 20 52 65 74 75 72 6e 73 20 |s. . Returns | 000035f0 74 68 65 20 62 69 74 77 69 73 65 20 4f 52 20 6f |the bitwise OR o| 00003600 66 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 |f <CODE>x </CODE| 00003610 3e 20 61 6e 64 20 3c 43 4f 44 45 3e 79 20 3c 2f |> and <CODE>y </| 00003620 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e |CODE>...<DT><A N| 00003630 41 4d 45 3d 22 6f 72 65 71 75 61 6c 22 3e 3c 43 |AME="orequal"><C| 00003640 4f 44 45 3e 7c 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 |ODE>|=</CODE></A| 00003650 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 7c 3d |>.<DD><CODE>x |=| 00003660 20 79 20 3c 2f 43 4f 44 45 3e 20 20 41 73 73 69 | y </CODE> Assi| 00003670 67 6e 20 3c 43 4f 44 45 3e 78 7c 79 20 3c 2f 43 |gn <CODE>x|y </C| 00003680 4f 44 45 3e 20 74 6f 20 0a 20 20 20 20 20 20 3c |ODE> to . <| 00003690 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2c 20 |CODE>x </CODE>, | 000036a0 61 6e 64 20 72 65 74 75 72 6e 20 3c 43 4f 44 45 |and return <CODE| 000036b0 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 |>x </CODE>...<DT| 000036c0 3e 3c 41 20 4e 41 4d 45 3d 22 6f 72 32 22 3e 3c |><A NAME="or2"><| 000036d0 43 4f 44 45 3e 7c 7c 3c 2f 43 4f 44 45 3e 3c 2f |CODE>||</CODE></| 000036e0 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 7c |A>.<DD><CODE>x || 000036f0 7c 20 79 20 3c 2f 43 4f 44 45 3e 20 20 42 6f 74 || y </CODE> Bot| 00003700 68 20 3c 43 4f 44 45 3e 78 2c 20 79 20 3c 2f 43 |h <CODE>x, y </C| 00003710 4f 44 45 3e 20 61 72 65 20 69 6e 74 65 67 65 72 |ODE> are integer| 00003720 73 2e 20 0a 20 20 20 20 49 66 20 3c 43 4f 44 45 |s. . If <CODE| 00003730 3e 78 3c 2f 43 4f 44 45 3e 20 69 73 20 6e 6f 6e |>x</CODE> is non| 00003740 7a 65 72 6f 2c 20 74 68 65 20 65 78 70 72 65 73 |zero, the expres| 00003750 73 69 6f 6e 20 0a 20 20 20 20 65 76 61 6c 75 61 |sion . evalua| 00003760 74 65 73 20 74 6f 20 31 2c 20 77 69 74 68 6f 75 |tes to 1, withou| 00003770 74 20 65 76 61 6c 75 61 74 69 6e 67 20 3c 43 4f |t evaluating <CO| 00003780 44 45 3e 79 3c 2f 43 4f 44 45 3e 2e 20 4f 74 68 |DE>y</CODE>. Oth| 00003790 65 72 77 69 73 65 20 0a 20 20 20 20 69 74 20 72 |erwise . it r| 000037a0 65 74 75 72 6e 73 20 30 20 69 66 20 3c 43 4f 44 |eturns 0 if <COD| 000037b0 45 3e 79 3c 2f 43 4f 44 45 3e 20 69 73 20 7a 65 |E>y</CODE> is ze| 000037c0 72 6f 20 61 6e 64 20 31 20 6f 74 68 65 72 77 69 |ro and 1 otherwi| 000037d0 73 65 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 |se...<DT><A NAME| 000037e0 3d 22 6f 72 32 65 71 75 61 6c 22 3e 3c 43 4f 44 |="or2equal"><COD| 000037f0 45 3e 7c 7c 3d 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |E>||=</CODE></A>| 00003800 0a 3c 44 44 3e 3c 43 4f 44 45 3e 78 20 7c 7c 3d |.<DD><CODE>x ||=| 00003810 20 79 20 3c 2f 43 4f 44 45 3e 20 20 41 73 73 69 | y </CODE> Assi| 00003820 67 6e 20 3c 43 4f 44 45 3e 78 7c 7c 79 20 3c 2f |gn <CODE>x||y </| 00003830 43 4f 44 45 3e 20 74 6f 20 0a 20 20 20 20 20 20 |CODE> to . | 00003840 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2c |<CODE>x </CODE>,| 00003850 20 61 6e 64 20 72 65 74 75 72 6e 20 3c 43 4f 44 | and return <COD| 00003860 45 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 |E>x </CODE>...<D| 00003870 54 3e 3c 41 20 4e 41 4d 45 3d 22 74 69 6c 64 65 |T><A NAME="tilde| 00003880 22 3e 3c 43 4f 44 45 3e 7e 3c 2f 43 4f 44 45 3e |"><CODE>~</CODE>| 00003890 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 7e |</A>.<DD><CODE>~| 000038a0 78 20 3c 2f 43 4f 44 45 3e 20 72 65 74 75 72 6e |x </CODE> return| 000038b0 73 20 74 68 65 20 62 69 74 77 69 73 65 20 4e 4f |s the bitwise NO| 000038c0 54 20 6f 66 20 74 68 65 20 69 6e 74 65 67 65 72 |T of the integer| 000038d0 0a 20 20 20 20 20 3c 43 4f 44 45 3e 78 20 3c 2f |. <CODE>x </| 000038e0 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e |CODE>...<DT><A N| 000038f0 41 4d 45 3d 22 61 74 22 3e 3c 43 4f 44 45 3e 26 |AME="at"><CODE>&| 00003900 23 36 34 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |#64;</CODE></A>.| 00003910 3c 44 44 3e 3c 43 4f 44 45 3e 26 23 36 34 3b 28 |<DD><CODE>@(| 00003920 73 29 20 3c 2f 43 4f 44 45 3e 20 69 73 20 74 68 |s) </CODE> is th| 00003930 65 20 61 64 64 72 65 73 73 20 6f 66 20 74 68 65 |e address of the| 00003940 20 66 69 72 73 74 20 63 68 61 72 61 63 74 65 72 | first character| 00003950 20 6f 66 20 74 68 65 20 0a 20 20 20 20 20 73 74 | of the . st| 00003960 72 69 6e 67 20 3c 43 4f 44 45 3e 73 3c 2f 43 4f |ring <CODE>s</CO| 00003970 44 45 3e 2e 20 54 68 69 73 20 61 64 64 72 65 73 |DE>. This addres| 00003980 73 20 69 73 20 64 69 76 69 73 69 62 6c 65 20 62 |s is divisible b| 00003990 79 20 34 2e 20 53 74 72 69 6e 67 73 20 0a 20 20 |y 4. Strings . | 000039a0 20 20 20 61 72 65 20 73 74 6f 72 65 64 20 61 73 | are stored as| 000039b0 20 61 20 63 6f 6e 73 65 63 75 74 69 76 65 20 61 | a consecutive a| 000039c0 72 72 61 79 20 6f 66 20 62 79 74 65 73 2e 0a 3c |rray of bytes..<| 000039d0 44 44 3e 45 2e 67 2e 20 3c 43 4f 44 45 3e 26 23 |DD>E.g. <CODE>&#| 000039e0 36 34 3b 73 20 3d 20 26 23 36 34 3b 28 73 20 3d |64;s = @(s =| 000039f0 20 26 71 75 6f 74 3b 68 65 6c 6c 6f 26 71 75 6f | "hello&quo| 00003a00 74 3b 29 3b 3c 2f 43 4f 44 45 3e 0a 0a 3c 44 54 |t;);</CODE>..<DT| 00003a10 3e 3c 41 20 4e 41 4d 45 3d 22 61 63 6f 73 22 3e |><A NAME="acos">| 00003a20 3c 43 4f 44 45 3e 61 63 6f 73 3c 2f 43 4f 44 45 |<CODE>acos</CODE| 00003a30 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e |></A>.<DD><CODE>| 00003a40 61 63 6f 73 28 78 29 20 3c 2f 43 4f 44 45 3e 20 |acos(x) </CODE> | 00003a50 69 73 20 61 72 63 2d 63 6f 73 20 6f 66 20 74 68 |is arc-cos of th| 00003a60 65 20 72 65 61 6c 20 3c 43 4f 44 45 3e 78 3c 2f |e real <CODE>x</| 00003a70 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e |CODE>...<DT><A N| 00003a80 41 4d 45 3d 22 61 73 69 6e 22 3e 3c 43 4f 44 45 |AME="asin"><CODE| 00003a90 3e 61 73 69 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |>asin</CODE></A>| 00003aa0 0a 3c 44 44 3e 3c 43 4f 44 45 3e 61 73 69 6e 28 |.<DD><CODE>asin(| 00003ab0 78 29 20 3c 2f 43 4f 44 45 3e 20 69 73 20 61 72 |x) </CODE> is ar| 00003ac0 63 2d 73 69 6e 65 20 6f 66 20 74 68 65 20 72 65 |c-sine of the re| 00003ad0 61 6c 20 3c 43 4f 44 45 3e 78 3c 2f 43 4f 44 45 |al <CODE>x</CODE| 00003ae0 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d |>...<DT><A NAME=| 00003af0 22 61 74 61 6e 22 3e 3c 43 4f 44 45 3e 61 74 61 |"atan"><CODE>ata| 00003b00 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |n</CODE></A>.<DD| 00003b10 3e 3c 43 4f 44 45 3e 61 74 61 6e 28 78 29 20 3c |><CODE>atan(x) <| 00003b20 2f 43 4f 44 45 3e 20 69 73 20 61 72 63 2d 74 61 |/CODE> is arc-ta| 00003b30 6e 67 65 6e 74 20 6f 66 20 74 68 65 20 72 65 61 |ngent of the rea| 00003b40 6c 20 3c 43 4f 44 45 3e 78 3c 2f 43 4f 44 45 3e |l <CODE>x</CODE>| 00003b50 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00003b60 62 72 65 61 6b 22 3e 3c 43 4f 44 45 3e 62 72 65 |break"><CODE>bre| 00003b70 61 6b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |ak</CODE></A>.<D| 00003b80 44 3e 3c 43 4f 44 45 3e 62 72 65 61 6b 3b 20 3c |D><CODE>break; <| 00003b90 2f 43 4f 44 45 3e 20 4a 75 6d 70 20 6f 75 74 20 |/CODE> Jump out | 00003ba0 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 |of the current s| 00003bb0 74 72 75 63 74 75 72 65 2e 0a 20 20 49 74 20 6f |tructure.. It o| 00003bc0 6e 6c 79 20 6d 61 6b 65 73 20 73 65 6e 73 65 20 |nly makes sense | 00003bd0 77 69 74 68 69 6e 20 61 20 3c 43 4f 44 45 3e 73 |within a <CODE>s| 00003be0 77 69 74 63 68 3c 2f 43 4f 44 45 3e 2c 20 3c 43 |witch</CODE>, <C| 00003bf0 4f 44 45 3e 64 6f 3c 2f 43 4f 44 45 3e 2f 0a 20 |ODE>do</CODE>/. | 00003c00 20 3c 43 4f 44 45 3e 72 65 70 65 61 74 3c 2f 43 | <CODE>repeat</C| 00003c10 4f 44 45 3e 2c 20 3c 43 4f 44 45 3e 66 6f 72 3c |ODE>, <CODE>for<| 00003c20 2f 43 4f 44 45 3e 20 6f 72 20 3c 43 4f 44 45 3e |/CODE> or <CODE>| 00003c30 77 68 69 6c 65 3c 2f 43 4f 44 45 3e 20 73 74 72 |while</CODE> str| 00003c40 75 63 74 75 72 65 2e 0a 0a 3c 44 54 3e 3c 41 20 |ucture...<DT><A | 00003c50 4e 41 4d 45 3d 22 63 61 6c 6c 22 3e 3c 43 4f 44 |NAME="call"><COD| 00003c60 45 3e 63 61 6c 6c 3c 2f 43 4f 44 45 3e 3c 2f 41 |E>call</CODE></A| 00003c70 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 63 61 6c 6c |>.<DD><CODE>call| 00003c80 28 61 64 72 2c 72 30 29 3b 20 3c 2f 43 4f 44 45 |(adr,r0); </CODE| 00003c90 3e 20 43 61 6c 6c 20 6d 61 63 68 69 6e 65 20 63 |> Call machine c| 00003ca0 6f 64 65 20 61 74 20 74 68 65 20 61 64 64 72 65 |ode at the addre| 00003cb0 73 73 20 0a 20 20 20 20 3c 43 4f 44 45 3e 61 64 |ss . <CODE>ad| 00003cc0 72 3c 2f 43 4f 44 45 3e 20 77 69 74 68 20 72 65 |r</CODE> with re| 00003cd0 67 69 73 74 65 72 20 52 30 20 68 6f 6c 64 69 6e |gister R0 holdin| 00003ce0 67 20 74 68 65 20 61 64 64 72 65 73 73 20 0a 20 |g the address . | 00003cf0 20 20 20 3c 43 4f 44 45 3e 72 30 3c 2f 43 4f 44 | <CODE>r0</COD| 00003d00 45 3e 2e 20 54 68 65 20 73 61 6d 65 20 63 61 6c |E>. The same cal| 00003d10 6c 69 6e 67 20 63 6f 6e 76 65 6e 74 69 6f 6e 73 |ling conventions| 00003d20 20 73 68 6f 75 6c 64 20 62 65 20 75 73 65 64 0a | should be used.| 00003d30 20 20 20 20 20 61 73 20 66 6f 72 20 43 2e 20 53 | as for C. S| 00003d40 6f 20 74 68 65 20 63 6f 64 65 20 73 68 6f 75 6c |o the code shoul| 00003d50 64 20 72 65 74 75 72 6e 20 77 69 74 68 20 4d 4f |d return with MO| 00003d60 56 20 50 43 2c 52 31 34 20 61 6e 64 20 73 68 6f |V PC,R14 and sho| 00003d70 75 6c 64 20 0a 20 20 20 20 20 70 72 65 73 65 72 |uld . preser| 00003d80 76 65 20 72 65 67 69 73 74 65 72 73 20 52 31 30 |ve registers R10| 00003d90 20 2d 20 52 31 34 2e 20 54 68 65 20 61 64 64 72 | - R14. The addr| 00003da0 65 73 73 20 3c 43 4f 44 45 3e 72 30 3c 2f 43 4f |ess <CODE>r0</CO| 00003db0 44 45 3e 20 73 68 6f 75 6c 64 20 0a 20 20 20 20 |DE> should . | 00003dc0 20 62 65 20 75 73 65 64 20 66 6f 72 20 61 20 62 | be used for a b| 00003dd0 75 66 66 65 72 20 66 6f 72 20 70 61 73 73 69 6e |uffer for passin| 00003de0 67 20 64 61 74 61 20 69 6e 20 61 6e 64 20 6f 75 |g data in and ou| 00003df0 74 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d |t...<DT><A NAME=| 00003e00 22 63 61 73 65 22 3e 3c 43 4f 44 45 3e 63 61 73 |"case"><CODE>cas| 00003e10 65 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |e</CODE></A>.<DD| 00003e20 3e 3c 43 4f 44 45 3e 63 61 73 65 20 78 3a 20 3c |><CODE>case x: <| 00003e30 2f 43 4f 44 45 3e 20 50 61 72 74 20 6f 66 20 74 |/CODE> Part of t| 00003e40 68 65 20 0a 20 20 3c 41 20 48 52 45 46 3d 22 23 |he . <A HREF="#| 00003e50 73 77 69 74 63 68 22 3e 3c 43 4f 44 45 3e 73 77 |switch"><CODE>sw| 00003e60 69 74 63 68 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 20 |itch</CODE></A> | 00003e70 63 6f 6e 73 74 72 75 63 74 2e 0a 0a 3c 44 54 3e |construct...<DT>| 00003e80 3c 41 20 4e 41 4d 45 3d 22 63 6c 61 73 73 22 3e |<A NAME="class">| 00003e90 3c 43 4f 44 45 3e 63 6c 61 73 73 3c 2f 43 4f 44 |<CODE>class</COD| 00003ea0 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 |E></A>.<DD><CODE| 00003eb0 3e 63 6c 61 73 73 20 3c 2f 43 4f 44 45 3e 20 4b |>class </CODE> K| 00003ec0 65 79 77 6f 72 64 20 69 6e 74 72 6f 64 75 63 69 |eyword introduci| 00003ed0 6e 67 20 61 20 63 6c 61 73 73 20 64 65 66 69 6e |ng a class defin| 00003ee0 69 74 69 6f 6e 2e 20 0a 20 20 20 43 6c 61 73 73 |ition. . Class| 00003ef0 20 64 65 66 69 6e 69 74 69 6f 6e 73 20 63 61 6e | definitions can| 00003f00 20 6f 6e 6c 79 20 61 70 70 65 61 72 20 61 74 20 | only appear at | 00003f10 74 68 65 20 74 6f 70 20 6c 65 76 65 6c 2e 0a 20 |the top level.. | 00003f20 20 20 54 68 61 74 20 69 73 20 74 6f 20 73 61 79 | That is to say| 00003f30 2c 20 74 68 65 79 20 63 61 6e 6e 6f 74 20 61 70 |, they cannot ap| 00003f40 70 65 61 72 20 69 6e 73 69 64 65 20 61 0a 20 20 |pear inside a. | 00003f50 20 63 6c 61 73 73 20 64 65 66 69 6e 69 74 69 6f | class definitio| 00003f60 6e 20 6f 72 20 61 20 66 75 6e 63 74 69 6f 6e 20 |n or a function | 00003f70 64 65 66 69 6e 69 74 69 6f 6e 2e 0a 20 20 20 43 |definition.. C| 00003f80 6c 61 73 73 20 64 65 66 69 6e 69 74 69 6f 6e 73 |lass definitions| 00003f90 20 6d 75 73 74 20 70 72 65 63 65 64 65 20 74 68 | must precede th| 00003fa0 65 20 64 65 66 69 6e 69 74 69 6f 6e 73 0a 20 20 |e definitions. | 00003fb0 20 6f 66 20 61 6e 79 20 6f 66 20 74 68 65 69 72 | of any of their| 00003fc0 20 69 6e 73 74 61 6e 63 65 20 6f 62 6a 65 63 74 | instance object| 00003fd0 73 2e 0a 3c 44 44 3e 20 45 2e 67 2e 20 3c 43 4f |s..<DD> E.g. <CO| 00003fe0 44 45 3e 63 6c 61 73 73 20 70 6f 69 6e 74 20 7b |DE>class point {| 00003ff0 20 71 3b 20 2f 2a 20 61 20 76 65 63 74 6f 72 20 | q; /* a vector | 00004000 6f 66 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 2a |of coordinates *| 00004010 2f 20 7d 3c 2f 43 4f 44 45 3e 0a 3c 44 44 3e 20 |/ }</CODE>.<DD> | 00004020 57 65 20 73 61 79 20 74 68 61 74 20 74 68 65 20 |We say that the | 00004030 63 6c 61 73 73 20 3c 43 4f 44 45 3e 70 6f 69 6e |class <CODE>poin| 00004040 74 3c 2f 43 4f 44 45 3e 20 68 61 73 20 74 68 65 |t</CODE> has the| 00004050 20 76 65 63 74 6f 72 20 0a 20 20 20 3c 43 4f 44 | vector . <COD| 00004060 45 3e 71 3c 2f 43 4f 44 45 3e 20 61 73 20 69 74 |E>q</CODE> as it| 00004070 73 20 3c 45 4d 3e 64 61 74 61 3c 2f 45 4d 3e 2e |s <EM>data</EM>.| 00004080 0a 20 20 20 3c 45 4d 3e 4d 65 74 68 6f 64 73 3c |. <EM>Methods<| 00004090 2f 45 4d 3e 20 66 6f 72 20 61 20 63 6c 61 73 73 |/EM> for a class| 000040a0 20 63 61 6e 20 62 65 20 64 65 63 6c 61 72 65 64 | can be declared| 000040b0 20 69 6e 73 69 64 65 20 74 68 65 20 63 6c 61 73 | inside the clas| 000040c0 73 27 73 0a 20 20 20 64 65 66 69 6e 69 74 69 6f |s's. definitio| 000040d0 6e 20 62 75 74 20 74 68 69 73 20 69 73 20 6f 70 |n but this is op| 000040e0 74 69 6f 6e 61 6c 2e 20 54 68 65 79 20 6d 75 73 |tional. They mus| 000040f0 74 20 62 65 20 64 65 66 69 6e 65 64 20 0a 20 20 |t be defined . | 00004100 20 6f 75 74 73 69 64 65 20 74 68 65 20 63 6c 61 | outside the cla| 00004110 73 73 20 64 65 66 69 6e 69 74 69 6f 6e 2e 20 46 |ss definition. F| 00004120 6f 72 20 65 78 61 6d 70 6c 65 2c 20 74 6f 20 61 |or example, to a| 00004130 64 64 20 61 20 6d 65 74 68 6f 64 20 0a 20 20 20 |dd a method . | 00004140 74 6f 20 3c 43 4f 44 45 3e 70 6f 69 6e 74 3c 2f |to <CODE>point</| 00004150 43 4f 44 45 3e 20 74 6f 20 72 65 61 64 20 69 74 |CODE> to read it| 00004160 73 20 66 69 72 73 74 20 63 6f 6f 72 64 69 6e 61 |s first coordina| 00004170 74 65 2c 20 77 65 20 63 6f 75 6c 64 20 68 61 76 |te, we could hav| 00004180 65 0a 3c 44 44 3e 20 3c 43 4f 44 45 3e 70 6f 69 |e.<DD> <CODE>poi| 00004190 6e 74 3a 3a 78 28 29 20 7b 20 72 65 74 75 72 6e |nt::x() { return| 000041a0 20 71 5b 30 5d 3b 20 7d 3c 2f 43 4f 44 45 3e 0a | q[0]; }</CODE>.| 000041b0 3c 44 44 3e 20 4d 65 74 68 6f 64 20 64 65 66 69 |<DD> Method defi| 000041c0 6e 69 74 69 6f 6e 73 20 61 72 65 20 65 78 61 63 |nitions are exac| 000041d0 74 6c 79 20 6c 69 6b 65 20 66 75 6e 63 74 69 6f |tly like functio| 000041e0 6e 20 64 65 66 69 6e 69 74 69 6f 6e 73 20 0a 20 |n definitions . | 000041f0 20 20 20 20 65 78 63 65 70 74 20 74 68 61 74 20 | except that | 00004200 74 68 65 20 63 6c 61 73 73 20 6e 61 6d 65 2c 20 |the class name, | 00004210 66 6f 6c 6c 6f 77 65 64 20 62 79 20 3c 43 4f 44 |followed by <COD| 00004220 45 3e 3a 3a 3c 2f 43 4f 44 45 3e 2c 0a 20 20 20 |E>::</CODE>,. | 00004230 20 20 70 72 65 66 69 78 65 73 20 74 68 65 20 6d | prefixes the m| 00004240 65 74 68 6f 64 20 6e 61 6d 65 2e 20 54 68 65 20 |ethod name. The | 00004250 73 61 6d 65 20 6d 65 74 68 6f 64 20 6e 61 6d 65 |same method name| 00004260 20 63 61 6e 20 62 65 0a 20 20 20 20 20 75 73 65 | can be. use| 00004270 64 20 69 6e 20 64 69 66 66 65 72 65 6e 74 20 63 |d in different c| 00004280 6c 61 73 73 65 73 2e 20 54 68 61 74 20 69 73 20 |lasses. That is | 00004290 74 6f 20 73 61 79 2c 20 64 61 74 61 20 61 6e 64 |to say, data and| 000042a0 0a 20 20 20 20 20 6d 65 74 68 6f 64 20 6e 61 6d |. method nam| 000042b0 65 73 20 61 72 65 20 6c 6f 63 61 6c 20 74 6f 20 |es are local to | 000042c0 61 20 63 6c 61 73 73 2e 20 54 68 65 20 76 61 72 |a class. The var| 000042d0 69 61 62 6c 65 0a 20 20 20 20 20 3c 41 20 48 52 |iable. <A HR| 000042e0 45 46 3d 22 23 74 68 69 73 22 3e 3c 43 4f 44 45 |EF="#this"><CODE| 000042f0 3e 74 68 69 73 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |>this</CODE></A>| 00004300 20 63 61 6e 20 62 65 20 75 73 65 64 20 69 6e 20 | can be used in | 00004310 61 20 6d 65 74 68 6f 64 20 74 6f 20 0a 20 20 20 |a method to . | 00004320 20 20 72 65 66 65 72 20 74 6f 20 74 68 65 20 69 | refer to the i| 00004330 6e 73 74 61 6e 63 65 20 6f 62 6a 65 63 74 20 75 |nstance object u| 00004340 73 69 6e 67 20 74 68 65 20 6d 65 74 68 6f 64 2e |sing the method.| 00004350 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 63 |..<DT><A NAME="c| 00004360 6f 6e 74 69 6e 75 65 22 3e 3c 43 4f 44 45 3e 63 |ontinue"><CODE>c| 00004370 6f 6e 74 69 6e 75 65 3c 2f 43 4f 44 45 3e 3c 2f |ontinue</CODE></| 00004380 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 63 6f 6e |A>.<DD><CODE>con| 00004390 74 69 6e 75 65 3b 20 3c 2f 43 4f 44 45 3e 20 53 |tinue; </CODE> S| 000043a0 74 61 72 74 20 74 68 65 20 6e 65 78 74 20 69 74 |tart the next it| 000043b0 65 72 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 73 |eration of the s| 000043c0 6d 61 6c 6c 65 73 74 20 0a 20 20 20 20 20 65 6e |mallest . en| 000043d0 63 6c 6f 73 69 6e 67 20 3c 43 4f 44 45 3e 64 6f |closing <CODE>do| 000043e0 3c 2f 43 4f 44 45 3e 2f 3c 43 4f 44 45 3e 72 65 |</CODE>/<CODE>re| 000043f0 70 65 61 74 2c 20 66 6f 72 3c 2f 43 4f 44 45 3e |peat, for</CODE>| 00004400 20 6f 72 0a 20 20 20 20 20 3c 43 4f 44 45 3e 77 | or. <CODE>w| 00004410 68 69 6c 65 3c 2f 43 4f 44 45 3e 20 73 74 72 75 |hile</CODE> stru| 00004420 63 74 75 72 65 2e 20 0a 0a 3c 44 54 3e 3c 41 20 |cture. ..<DT><A | 00004430 4e 41 4d 45 3d 22 63 6f 73 22 3e 3c 43 4f 44 45 |NAME="cos"><CODE| 00004440 3e 63 6f 73 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |>cos</CODE></A>.| 00004450 3c 44 44 3e 3c 43 4f 44 45 3e 63 6f 73 28 78 29 |<DD><CODE>cos(x)| 00004460 20 3c 2f 43 4f 44 45 3e 20 69 73 20 63 6f 73 69 | </CODE> is cosi| 00004470 6e 65 20 6f 66 20 74 68 65 20 72 65 61 6c 20 3c |ne of the real <| 00004480 43 4f 44 45 3e 78 3c 2f 43 4f 44 45 3e 2e 0a 0a |CODE>x</CODE>...| 00004490 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 64 65 66 |<DT><A NAME="def| 000044a0 61 75 6c 74 22 3e 3c 43 4f 44 45 3e 64 65 66 61 |ault"><CODE>defa| 000044b0 75 6c 74 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c |ult</CODE></A>.<| 000044c0 44 44 3e 3c 43 4f 44 45 3e 64 65 66 61 75 6c 74 |DD><CODE>default| 000044d0 3a 20 3c 2f 43 4f 44 45 3e 20 74 68 65 20 64 65 |: </CODE> the de| 000044e0 66 61 75 6c 74 20 61 6c 74 65 72 6e 61 74 69 76 |fault alternativ| 000044f0 65 20 69 6e 20 74 68 65 20 0a 20 20 20 3c 41 20 |e in the . <A | 00004500 48 52 45 46 3d 22 23 73 77 69 74 63 68 22 3e 3c |HREF="#switch"><| 00004510 43 4f 44 45 3e 73 77 69 74 63 68 3c 2f 43 4f 44 |CODE>switch</COD| 00004520 45 3e 3c 2f 41 3e 20 73 74 72 75 63 74 75 72 65 |E></A> structure| 00004530 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00004540 64 6f 22 3e 3c 43 4f 44 45 3e 64 6f 3c 2f 43 4f |do"><CODE>do</CO| 00004550 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 00004560 45 3e 64 6f 20 2e 2e 2e 20 75 6e 74 69 6c 2f 77 |E>do ... until/w| 00004570 68 69 6c 65 20 28 78 29 3b 20 3c 2f 43 4f 44 45 |hile (x); </CODE| 00004580 3e 20 4c 6f 6f 70 69 6e 67 20 63 6f 6e 73 74 72 |> Looping constr| 00004590 75 63 74 20 77 68 65 72 65 20 74 68 65 20 62 6f |uct where the bo| 000045a0 64 79 20 69 73 20 65 78 65 63 75 74 65 64 20 61 |dy is executed a| 000045b0 74 20 6c 65 61 73 74 20 6f 6e 63 65 2e 0a 0a 3c |t least once...<| 000045c0 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 65 6c 73 65 |DT><A NAME="else| 000045d0 22 3e 3c 43 4f 44 45 3e 65 6c 73 65 3c 2f 43 4f |"><CODE>else</CO| 000045e0 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 000045f0 45 3e 65 6c 73 65 20 3c 2f 43 4f 44 45 3e 20 4f |E>else </CODE> O| 00004600 70 74 69 6f 6e 61 6c 20 70 61 72 74 20 6f 66 20 |ptional part of | 00004610 0a 20 20 20 3c 41 20 48 52 45 46 3d 22 23 69 66 |. <A HREF="#if| 00004620 22 3e 3c 43 4f 44 45 3e 69 66 3c 2f 43 4f 44 45 |"><CODE>if</CODE| 00004630 3e 3c 2f 41 3e 20 63 6f 6e 73 74 72 75 63 74 2e |></A> construct.| 00004640 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 65 |..<DT><A NAME="e| 00004650 6e 75 6d 22 3e 3c 43 4f 44 45 3e 65 6e 75 6d 3c |num"><CODE>enum<| 00004660 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c |/CODE></A>.<DD><| 00004670 43 4f 44 45 3e 65 6e 75 6d 20 7b 20 78 31 2c 20 |CODE>enum { x1, | 00004680 2e 2e 2e 20 2c 20 78 6e 20 7d 20 3c 2f 43 4f 44 |... , xn } </COD| 00004690 45 3e 20 54 68 69 73 20 72 65 74 75 72 6e 73 20 |E> This returns | 000046a0 74 68 65 20 69 6e 74 65 67 65 72 0a 20 20 20 20 |the integer. | 000046b0 20 3c 43 4f 44 45 3e 6e 3c 2f 43 4f 44 45 3e 20 | <CODE>n</CODE> | 000046c0 61 6e 64 20 61 73 73 69 67 6e 73 20 74 68 65 20 |and assigns the | 000046d0 76 61 6c 75 65 73 20 30 2c 20 31 2c 20 2e 2e 2e |values 0, 1, ...| 000046e0 20 28 6e 2d 31 29 20 74 6f 20 74 68 65 20 6e 0a | (n-1) to the n.| 000046f0 20 20 20 20 20 76 61 72 69 61 62 6c 65 73 20 3c | variables <| 00004700 43 4f 44 45 3e 20 78 31 2c 20 2e 2e 2e 20 78 6e |CODE> x1, ... xn| 00004710 20 3c 2f 43 4f 44 45 3e 20 69 6e 20 6f 72 64 65 | </CODE> in orde| 00004720 72 2e 20 49 74 20 69 73 20 75 73 65 66 75 6c 20 |r. It is useful | 00004730 66 6f 72 0a 20 20 20 20 20 68 69 64 69 6e 67 20 |for. hiding | 00004740 65 78 70 6c 69 63 69 74 20 69 6e 64 65 78 69 6e |explicit indexin| 00004750 67 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d |g...<DT><A NAME=| 00004760 22 65 78 70 22 3e 3c 43 4f 44 45 3e 65 78 70 3c |"exp"><CODE>exp<| 00004770 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c |/CODE></A>.<DD><| 00004780 43 4f 44 45 3e 65 78 70 28 78 29 20 3c 2f 43 4f |CODE>exp(x) </CO| 00004790 44 45 3e 20 69 73 20 65 78 70 6f 6e 65 6e 74 69 |DE> is exponenti| 000047a0 61 6c 20 6f 66 20 74 68 65 20 72 65 61 6c 20 3c |al of the real <| 000047b0 43 4f 44 45 3e 20 78 20 3c 2f 43 4f 44 45 3e 2e |CODE> x </CODE>.| 000047c0 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 66 |..<DT><A NAME="f| 000047d0 63 6c 6f 73 65 22 3e 3c 43 4f 44 45 3e 66 63 6c |close"><CODE>fcl| 000047e0 6f 73 65 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c |ose</CODE></A>.<| 000047f0 44 44 3e 3c 43 4f 44 45 3e 66 63 6c 6f 73 65 28 |DD><CODE>fclose(| 00004800 66 70 29 3b 20 3c 2f 43 4f 44 45 3e 20 63 6c 6f |fp); </CODE> clo| 00004810 73 65 73 20 74 68 65 20 69 6f 73 74 72 65 61 6d |ses the iostream| 00004820 20 3c 43 4f 44 45 3e 20 66 70 20 3c 2f 43 4f 44 | <CODE> fp </COD| 00004830 45 3e 0a 20 20 20 20 20 20 20 20 20 20 20 61 6e |E>. an| 00004840 64 20 72 65 74 75 72 6e 73 20 3c 43 4f 44 45 3e |d returns <CODE>| 00004850 20 6e 69 6c 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c | nil </CODE>...<| 00004860 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 66 6c 6f 6f |DT><A NAME="floo| 00004870 72 22 3e 3c 43 4f 44 45 3e 66 6c 6f 6f 72 3c 2f |r"><CODE>floor</| 00004880 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 |CODE></A>.<DD><C| 00004890 4f 44 45 3e 66 6c 6f 6f 72 28 78 29 20 3c 2f 43 |ODE>floor(x) </C| 000048a0 4f 44 45 3e 20 69 73 20 74 68 65 20 69 6e 74 65 |ODE> is the inte| 000048b0 67 65 72 20 70 61 72 74 20 6f 66 20 74 68 65 20 |ger part of the | 000048c0 72 65 61 6c 0a 20 20 20 20 76 61 6c 75 65 20 3c |real. value <| 000048d0 43 4f 44 45 3e 20 78 20 3c 2f 43 4f 44 45 3e 2e |CODE> x </CODE>.| 000048e0 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 66 |..<DT><A NAME="f| 000048f0 6f 70 65 6e 22 3e 3c 43 4f 44 45 3e 66 6f 70 65 |open"><CODE>fope| 00004900 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |n</CODE></A>.<DD| 00004910 3e 3c 43 4f 44 45 3e 66 6f 70 65 6e 28 66 6e 61 |><CODE>fopen(fna| 00004920 6d 65 2c 6d 6f 64 65 29 20 3c 2f 43 4f 44 45 3e |me,mode) </CODE>| 00004930 20 74 72 69 65 73 20 74 6f 20 6f 70 65 6e 20 61 | tries to open a| 00004940 20 6e 65 77 20 69 6f 73 74 72 65 61 6d 0a 20 20 | new iostream. | 00004950 20 20 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 | connected to | 00004960 74 68 65 20 66 69 6c 65 20 6e 61 6d 65 64 20 62 |the file named b| 00004970 79 20 74 68 65 20 73 74 72 69 6e 67 20 3c 43 4f |y the string <CO| 00004980 44 45 3e 66 6e 61 6d 65 3c 2f 43 4f 44 45 3e 2e |DE>fname</CODE>.| 00004990 20 0a 20 20 20 20 20 49 66 20 75 6e 73 75 63 63 | . If unsucc| 000049a0 65 73 73 66 75 6c 2c 20 72 65 74 75 72 6e 73 20 |essful, returns | 000049b0 3c 43 4f 44 45 3e 6e 69 6c 3c 2f 43 4f 44 45 3e |<CODE>nil</CODE>| 000049c0 2c 20 61 6e 64 20 6f 74 68 65 72 77 69 73 65 20 |, and otherwise | 000049d0 72 65 74 75 72 6e 73 0a 20 20 20 20 20 74 68 65 |returns. the| 000049e0 20 69 6f 73 74 72 65 61 6d 20 69 74 73 65 6c 66 | iostream itself| 000049f0 2e 20 54 68 65 20 6d 6f 64 65 20 76 61 72 69 61 |. The mode varia| 00004a00 62 6c 65 20 63 61 6e 20 74 61 6b 65 20 74 68 65 |ble can take the| 00004a10 20 76 61 6c 75 65 73 20 0a 20 20 20 20 20 26 71 | values . &q| 00004a20 75 6f 74 3b 72 26 71 75 6f 74 3b 20 28 72 65 61 |uot;r" (rea| 00004a30 64 29 2c 20 26 71 75 6f 74 3b 77 26 71 75 6f 74 |d), "w"| 00004a40 3b 20 28 77 72 69 74 65 29 20 61 6e 64 20 0a 20 |; (write) and . | 00004a50 20 20 20 20 26 71 75 6f 74 3b 61 26 71 75 6f 74 | "a"| 00004a60 3b 20 28 61 70 70 65 6e 64 29 2e 0a 0a 3c 44 54 |; (append)...<DT| 00004a70 3e 3c 41 20 4e 41 4d 45 3d 22 66 6f 72 22 3e 3c |><A NAME="for"><| 00004a80 43 4f 44 45 3e 66 6f 72 3c 2f 43 4f 44 45 3e 3c |CODE>for</CODE><| 00004a90 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 66 6f |/A>.<DD><CODE>fo| 00004aa0 72 28 73 74 61 72 74 3b 74 65 72 6d 69 6e 61 74 |r(start;terminat| 00004ab0 65 3b 61 63 74 69 6f 6e 29 20 2e 2e 2e 2e 20 3c |e;action) .... <| 00004ac0 2f 43 4f 44 45 3e 20 69 74 65 72 61 74 69 6f 6e |/CODE> iteration| 00004ad0 20 63 6f 6e 73 74 72 75 63 74 2e 0a 3c 44 44 3e | construct..<DD>| 00004ae0 20 45 2e 67 2e 20 3c 43 4f 44 45 3e 3c 50 52 45 | E.g. <CODE><PRE| 00004af0 3e 0a 20 20 20 20 20 20 20 20 66 6f 72 28 69 20 |>. for(i | 00004b00 3d 20 30 3b 20 69 20 26 6c 74 3b 3b 20 73 69 7a |= 0; i <; siz| 00004b10 65 6f 66 28 76 29 3b 20 69 2b 2b 29 0a 20 20 20 |eof(v); i++). | 00004b20 20 20 20 20 20 20 20 20 70 72 69 6e 74 28 26 71 | print(&q| 00004b30 75 6f 74 3b 76 5b 26 71 75 6f 74 3b 2c 69 2c 26 |uot;v[",i,&| 00004b40 71 75 6f 74 3b 5d 20 3d 20 26 71 75 6f 74 3b 2c |quot;] = ",| 00004b50 76 5b 69 5d 2c 26 71 75 6f 74 3b 5c 6e 26 71 75 |v[i],"\n&qu| 00004b60 6f 74 29 3b 0a 20 20 20 20 20 3c 2f 50 52 45 3e |ot);. </PRE>| 00004b70 3c 2f 43 4f 44 45 3e 0a 0a 3c 44 54 3e 3c 41 20 |</CODE>..<DT><A | 00004b80 4e 41 4d 45 3d 22 67 63 22 3e 3c 43 4f 44 45 3e |NAME="gc"><CODE>| 00004b90 67 63 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |gc</CODE></A>.<D| 00004ba0 44 3e 3c 43 4f 44 45 3e 67 63 28 29 3b 20 3c 2f |D><CODE>gc(); </| 00004bb0 43 4f 44 45 3e 20 66 6f 72 63 65 73 20 67 61 72 |CODE> forces gar| 00004bc0 62 61 67 65 20 63 6f 6c 6c 65 63 74 69 6f 6e 2e |bage collection.| 00004bd0 20 54 68 65 20 76 61 6c 75 65 0a 20 20 20 20 3c | The value. <| 00004be0 43 4f 44 45 3e 6e 69 6c 3c 2f 43 4f 44 45 3e 20 |CODE>nil</CODE> | 00004bf0 69 73 20 72 65 74 75 72 6e 65 64 2e 0a 0a 3c 44 |is returned...<D| 00004c00 54 3e 3c 41 20 4e 41 4d 45 3d 22 67 65 74 61 72 |T><A NAME="getar| 00004c10 67 22 3e 3c 43 4f 44 45 3e 67 65 74 61 72 67 3c |g"><CODE>getarg<| 00004c20 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c |/CODE></A>.<DD><| 00004c30 43 4f 44 45 3e 67 65 74 61 72 67 28 69 29 20 3c |CODE>getarg(i) <| 00004c40 2f 43 4f 44 45 3e 20 72 65 74 75 72 6e 73 20 74 |/CODE> returns t| 00004c50 68 65 20 3c 43 4f 44 45 3e 69 3c 2f 43 4f 44 45 |he <CODE>i</CODE| 00004c60 3e 2d 74 68 20 0a 20 20 20 20 20 61 72 67 75 6d |>-th . argum| 00004c70 65 6e 74 20 6f 6e 20 74 68 65 20 63 6f 6d 6d 61 |ent on the comma| 00004c80 6e 64 20 6c 69 6e 65 20 61 73 20 61 20 73 74 72 |nd line as a str| 00004c90 69 6e 67 2c 20 69 66 20 74 68 65 72 65 20 69 73 |ing, if there is| 00004ca0 20 6f 6e 65 2c 20 61 6e 64 0a 20 20 20 20 20 3c | one, and. <| 00004cb0 43 4f 44 45 3e 6e 69 6c 3c 2f 43 4f 44 45 3e 20 |CODE>nil</CODE> | 00004cc0 69 66 20 74 68 65 72 65 20 69 73 20 6e 6f 6e 65 |if there is none| 00004cd0 2e 20 54 68 65 20 30 2d 74 68 20 61 72 67 75 6d |. The 0-th argum| 00004ce0 65 6e 74 20 69 73 20 74 68 65 20 63 6f 6d 6d 61 |ent is the comma| 00004cf0 6e 64 0a 20 20 20 20 20 69 74 73 65 6c 66 20 28 |nd. itself (| 00004d00 74 68 65 20 70 72 6f 67 72 61 6d 27 73 20 70 61 |the program's pa| 00004d10 74 68 6e 61 6d 65 29 2e 0a 3c 44 44 3e 20 45 2e |thname)..<DD> E.| 00004d20 67 2e 20 3c 43 4f 44 45 3e 3c 50 52 45 3e 0a 20 |g. <CODE><PRE>. | 00004d30 20 20 20 20 20 20 20 20 20 20 66 6f 72 28 69 20 | for(i | 00004d40 3d 20 31 3b 20 74 79 70 65 6f 66 28 61 72 67 20 |= 1; typeof(arg | 00004d50 3d 20 67 65 74 61 72 67 28 69 29 29 3b 20 69 2b |= getarg(i)); i+| 00004d60 2b 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 |+). | 00004d70 20 20 70 72 6f 63 65 73 73 28 61 72 67 29 3b 3c | process(arg);<| 00004d80 2f 50 52 45 3e 3c 2f 43 4f 44 45 3e 0a 0a 3c 44 |/PRE></CODE>..<D| 00004d90 54 3e 3c 41 20 4e 41 4d 45 3d 22 67 65 74 63 22 |T><A NAME="getc"| 00004da0 3e 3c 43 4f 44 45 3e 67 65 74 63 3c 2f 43 4f 44 |><CODE>getc</COD| 00004db0 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 |E></A>.<DD><CODE| 00004dc0 3e 67 65 74 63 28 66 70 29 20 3c 2f 43 4f 44 45 |>getc(fp) </CODE| 00004dd0 3e 20 72 65 74 75 72 6e 73 20 65 69 74 68 65 72 |> returns either| 00004de0 20 74 68 65 20 6e 65 78 74 20 62 79 74 65 20 66 | the next byte f| 00004df0 72 6f 6d 20 74 68 65 20 0a 20 20 20 69 6f 73 74 |rom the . iost| 00004e00 72 65 61 6d 20 3c 43 4f 44 45 3e 66 70 3c 2f 43 |ream <CODE>fp</C| 00004e10 4f 44 45 3e 20 6f 72 20 3c 43 4f 44 45 3e 45 4f |ODE> or <CODE>EO| 00004e20 46 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c |F</CODE>...<DT><| 00004e30 41 20 4e 41 4d 45 3d 22 69 66 22 3e 3c 43 4f 44 |A NAME="if"><COD| 00004e40 45 3e 69 66 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |E>if</CODE></A>.| 00004e50 3c 44 44 3e 3c 43 4f 44 45 3e 69 66 20 28 63 6f |<DD><CODE>if (co| 00004e60 6e 64 69 74 69 6f 6e 29 20 2e 2e 2e 20 65 6c 73 |ndition) ... els| 00004e70 65 20 2e 2e 2e 20 3c 2f 43 4f 44 45 3e 20 20 63 |e ... </CODE> c| 00004e80 6f 6e 64 69 74 69 6f 6e 61 6c 20 63 6f 6e 73 74 |onditional const| 00004e90 72 75 63 74 2e 0a 20 20 20 41 20 63 6f 6e 64 69 |ruct.. A condi| 00004ea0 74 69 6f 6e 20 69 73 20 72 65 67 61 72 64 65 64 |tion is regarded| 00004eb0 20 61 73 20 66 61 6c 73 65 20 69 66 20 69 74 20 | as false if it | 00004ec0 69 73 20 65 69 74 68 65 72 20 74 68 65 20 69 6e |is either the in| 00004ed0 74 65 67 65 72 20 30 0a 20 20 20 6f 72 20 74 68 |teger 0. or th| 00004ee0 65 20 76 61 6c 75 65 20 3c 43 4f 44 45 3e 6e 69 |e value <CODE>ni| 00004ef0 6c 3c 2f 43 4f 44 45 3e 2e 20 4f 74 68 65 72 20 |l</CODE>. Other | 00004f00 76 61 6c 75 65 73 20 63 6f 75 6e 74 20 61 73 20 |values count as | 00004f10 74 72 75 65 2e 20 0a 0a 3c 44 54 3e 3c 41 20 4e |true. ..<DT><A N| 00004f20 41 4d 45 3d 22 69 6e 22 3e 3c 43 4f 44 45 3e 69 |AME="in"><CODE>i| 00004f30 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |n</CODE></A>.<DD| 00004f40 3e 3c 43 4f 44 45 3e 69 6e 20 62 75 66 66 65 72 |><CODE>in buffer| 00004f50 20 70 75 74 20 7b 20 78 31 3b 20 2e 2e 2e 2e 20 | put { x1; .... | 00004f60 78 6e 20 3b 7d 20 3c 2f 43 4f 44 45 3e 20 73 74 |xn ;} </CODE> st| 00004f70 72 75 63 74 75 72 65 2e 20 0a 20 20 20 3c 43 4f |ructure. . <CO| 00004f80 44 45 3e 62 75 66 66 65 72 3c 2f 43 4f 44 45 3e |DE>buffer</CODE>| 00004f90 20 69 73 20 65 69 74 68 65 72 20 61 20 73 74 72 | is either a str| 00004fa0 69 6e 67 20 6f 72 20 61 6e 20 69 6e 74 65 67 65 |ing or an intege| 00004fb0 72 20 61 64 64 72 65 73 73 2e 0a 20 20 20 54 68 |r address.. Th| 00004fc0 65 20 76 61 6c 75 65 73 20 3c 43 4f 44 45 3e 78 |e values <CODE>x| 00004fd0 31 20 2e 2e 2e 20 78 6e 3c 2f 43 4f 44 45 3e 20 |1 ... xn</CODE> | 00004fe0 61 72 65 20 73 74 72 69 6e 67 73 20 6f 72 20 69 |are strings or i| 00004ff0 6e 74 65 67 65 72 73 2e 0a 0a 3c 44 54 3e 3c 41 |ntegers...<DT><A| 00005000 20 4e 41 4d 45 3d 22 69 6e 70 75 74 22 3e 3c 43 | NAME="input"><C| 00005010 4f 44 45 3e 69 6e 70 75 74 3c 2f 43 4f 44 45 3e |ODE>input</CODE>| 00005020 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 69 |</A>.<DD><CODE>i| 00005030 6e 70 75 74 28 29 20 3c 2f 43 4f 44 45 3e 20 52 |nput() </CODE> R| 00005040 65 74 75 72 6e 73 20 61 6e 20 69 6e 70 75 74 20 |eturns an input | 00005050 73 74 72 69 6e 67 2e 20 4c 65 61 64 69 6e 67 20 |string. Leading | 00005060 73 70 61 63 65 73 20 61 72 65 0a 20 20 20 20 20 |spaces are. | 00005070 20 6e 6f 74 20 72 65 6d 6f 76 65 64 2e 20 54 6f | not removed. To| 00005080 20 69 6e 70 75 74 20 61 20 6e 75 6d 62 65 72 20 | input a number | 00005090 75 73 65 20 74 68 65 20 66 75 6e 63 74 69 6f 6e |use the function| 000050a0 20 0a 20 20 20 20 20 20 3c 41 20 48 52 45 46 3d | . <A HREF=| 000050b0 22 23 76 61 6c 22 3e 3c 43 4f 44 45 3e 76 61 6c |"#val"><CODE>val| 000050c0 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 2e 0a 3c 44 44 |</CODE></A>..<DD| 000050d0 3e 45 2e 67 2e 20 3c 43 4f 44 45 3e 6e 20 3d 20 |>E.g. <CODE>n = | 000050e0 76 61 6c 28 69 6e 70 75 74 28 29 29 3b 3c 2f 43 |val(input());</C| 000050f0 4f 44 45 3e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d |ODE>..<DT><A NAM| 00005100 45 3d 22 6c 6f 63 61 6c 22 3e 3c 43 4f 44 45 3e |E="local"><CODE>| 00005110 6c 6f 63 61 6c 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |local</CODE></A>| 00005120 0a 3c 44 44 3e 3c 43 4f 44 45 3e 6c 6f 63 61 6c |.<DD><CODE>local| 00005130 20 78 31 2c 20 2e 2e 2e 20 78 6e 20 3b 3c 2f 43 | x1, ... xn ;</C| 00005140 4f 44 45 3e 20 64 65 63 6c 61 72 65 73 20 3c 43 |ODE> declares <C| 00005150 4f 44 45 3e 78 31 2c 20 2e 2e 2e 20 2c 78 6e 3c |ODE>x1, ... ,xn<| 00005160 2f 43 4f 44 45 3e 0a 20 20 74 6f 20 62 65 20 6c |/CODE>. to be l| 00005170 6f 63 61 6c 20 76 61 72 69 61 62 6c 65 73 2e 20 |ocal variables. | 00005180 54 68 69 73 20 73 74 61 74 65 6d 65 6e 74 20 6d |This statement m| 00005190 75 73 74 20 70 72 65 63 65 64 65 20 61 6c 6c 20 |ust precede all | 000051a0 6f 74 68 65 72 73 20 69 6e 0a 20 20 74 68 65 20 |others in. the | 000051b0 62 6f 64 79 20 6f 66 20 61 20 66 75 6e 63 74 69 |body of a functi| 000051c0 6f 6e 20 6f 72 20 6d 65 74 68 6f 64 20 64 65 66 |on or method def| 000051d0 69 6e 69 74 69 6f 6e 2e 0a 0a 3c 44 54 3e 3c 41 |inition...<DT><A| 000051e0 20 4e 41 4d 45 3d 22 6c 6f 67 22 3e 3c 43 4f 44 | NAME="log"><COD| 000051f0 45 3e 6c 6f 67 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |E>log</CODE></A>| 00005200 0a 3c 44 44 3e 3c 43 4f 44 45 3e 6c 6f 67 28 78 |.<DD><CODE>log(x| 00005210 29 20 3c 2f 43 4f 44 45 3e 20 69 73 20 6e 61 74 |) </CODE> is nat| 00005220 75 72 61 6c 20 6c 6f 67 61 72 69 74 68 6d 20 6f |ural logarithm o| 00005230 66 20 74 68 65 20 72 65 61 6c 20 3c 43 4f 44 45 |f the real <CODE| 00005240 3e 78 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e |>x</CODE>...<DT>| 00005250 3c 41 20 4e 41 4d 45 3d 22 6e 65 77 22 3e 3c 43 |<A NAME="new"><C| 00005260 4f 44 45 3e 6e 65 77 3c 2f 43 4f 44 45 3e 3c 2f |ODE>new</CODE></| 00005270 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 6e 65 77 |A>.<DD><CODE>new| 00005280 20 3c 2f 43 4f 44 45 3e 20 69 73 20 75 73 65 64 | </CODE> is used| 00005290 20 74 6f 20 63 72 65 61 74 65 20 69 6e 73 74 61 | to create insta| 000052a0 6e 63 65 20 6f 62 6a 65 63 74 73 20 6f 66 20 63 |nce objects of c| 000052b0 6c 61 73 73 65 73 2e 0a 3c 44 44 3e 20 45 2e 67 |lasses..<DD> E.g| 000052c0 2e 20 66 6f 72 20 61 20 63 6c 61 73 73 20 66 6f |. for a class fo| 000052d0 6f 20 3c 43 4f 44 45 3e 78 20 3d 20 6e 65 77 20 |o <CODE>x = new | 000052e0 66 6f 6f 28 20 2e 2e 2e 20 29 3b 3c 2f 43 4f 44 |foo( ... );</COD| 000052f0 45 3e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d |E>..<DT><A NAME=| 00005300 22 6e 65 77 73 74 72 69 6e 67 22 3e 3c 43 4f 44 |"newstring"><COD| 00005310 45 3e 6e 65 77 73 74 72 69 6e 67 3c 2f 43 4f 44 |E>newstring</COD| 00005320 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 |E></A>.<DD><CODE| 00005330 3e 6e 65 77 73 74 72 69 6e 67 28 6e 29 20 3c 2f |>newstring(n) </| 00005340 43 4f 44 45 3e 20 41 6c 6c 6f 63 61 74 65 73 20 |CODE> Allocates | 00005350 61 6e 20 61 72 72 61 79 20 6f 66 20 0a 20 20 20 |an array of . | 00005360 20 20 3c 43 4f 44 45 3e 6e 3c 2f 43 4f 44 45 3e | <CODE>n</CODE>| 00005370 20 62 79 74 65 73 20 69 6e 20 74 68 65 20 68 65 | bytes in the he| 00005380 61 70 2c 20 73 74 61 72 74 69 6e 67 20 6f 6e 20 |ap, starting on | 00005390 61 20 0a 20 20 20 20 20 77 6f 72 64 20 62 6f 75 |a . word bou| 000053a0 6e 64 61 72 79 2c 20 69 6e 69 74 69 61 6c 69 7a |ndary, initializ| 000053b0 65 73 20 74 68 65 6d 20 74 6f 20 7a 65 72 6f 2c |es them to zero,| 000053c0 20 61 6e 64 20 72 65 74 75 72 6e 73 20 0a 20 20 | and returns . | 000053d0 20 20 20 74 68 65 20 73 74 72 69 6e 67 20 77 68 | the string wh| 000053e0 69 63 68 20 68 61 73 20 74 68 69 73 20 61 72 72 |ich has this arr| 000053f0 61 79 20 61 73 20 69 74 73 20 76 61 6c 75 65 2e |ay as its value.| 00005400 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 6e |..<DT><A NAME="n| 00005410 65 77 76 65 63 74 6f 72 22 3e 3c 43 4f 44 45 3e |ewvector"><CODE>| 00005420 6e 65 77 76 65 63 74 6f 72 3c 2f 43 4f 44 45 3e |newvector</CODE>| 00005430 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 6e |</A>.<DD><CODE>n| 00005440 65 77 76 65 63 74 6f 72 28 6e 29 20 3c 2f 43 4f |ewvector(n) </CO| 00005450 44 45 3e 20 41 6c 6c 6f 63 61 74 65 73 20 73 70 |DE> Allocates sp| 00005460 61 63 65 20 69 6e 20 74 68 65 20 68 65 61 70 20 |ace in the heap | 00005470 0a 20 20 20 20 20 66 6f 72 20 61 6e 20 3c 43 4f |. for an <CO| 00005480 44 45 3e 6e 3c 2f 43 4f 44 45 3e 2d 63 6f 6d 70 |DE>n</CODE>-comp| 00005490 6f 6e 65 6e 74 20 76 65 63 74 6f 72 2c 20 77 68 |onent vector, wh| 000054a0 6f 73 65 20 76 61 6c 75 65 73 20 0a 20 20 20 20 |ose values . | 000054b0 20 61 72 65 20 61 6c 6c 20 3c 43 4f 44 45 3e 6e | are all <CODE>n| 000054c0 69 6c 3c 2f 43 4f 44 45 3e 2c 20 61 6e 64 20 72 |il</CODE>, and r| 000054d0 65 74 75 72 6e 73 20 74 68 69 73 20 76 65 63 74 |eturns this vect| 000054e0 6f 72 2e 0a 3c 44 44 3e 45 2e 67 2e 3c 43 4f 44 |or..<DD>E.g.<COD| 000054f0 45 3e 3c 50 52 45 3e 0a 20 20 20 20 20 6c 6f 6f |E><PRE>. loo| 00005500 70 79 20 3d 20 6e 65 77 76 65 63 74 6f 72 28 32 |py = newvector(2| 00005510 29 3b 0a 20 20 20 20 20 6c 6f 6f 70 79 5b 30 5d |);. loopy[0]| 00005520 20 3d 20 6c 6f 6f 70 79 3b 20 3c 2f 50 52 45 3e | = loopy; </PRE>| 00005530 3c 2f 43 4f 44 45 3e 0a 0a 3c 44 54 3e 3c 41 20 |</CODE>..<DT><A | 00005540 4e 41 4d 45 3d 22 6e 69 6c 22 3e 3c 43 4f 44 45 |NAME="nil"><CODE| 00005550 3e 6e 69 6c 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |>nil</CODE></A>.| 00005560 3c 44 44 3e 3c 43 4f 44 45 3e 6e 69 6c 20 3c 2f |<DD><CODE>nil </| 00005570 43 4f 44 45 3e 20 74 68 65 20 73 69 6e 67 6c 65 |CODE> the single| 00005580 20 76 61 6c 75 65 20 6f 66 20 74 79 70 65 20 4e | value of type N| 00005590 49 4c 2e 20 54 68 69 73 20 69 73 0a 20 20 20 20 |IL. This is. | 000055a0 75 73 65 64 20 74 6f 20 72 65 70 72 65 73 65 6e |used to represen| 000055b0 74 20 75 6e 64 65 66 69 6e 65 64 20 71 75 61 6e |t undefined quan| 000055c0 74 69 74 69 65 73 2e 0a 0a 3c 44 54 3e 3c 41 20 |tities...<DT><A | 000055d0 4e 41 4d 45 3d 22 6f 73 63 6c 69 22 3e 3c 43 4f |NAME="oscli"><CO| 000055e0 44 45 3e 6f 73 63 6c 69 3c 2f 43 4f 44 45 3e 3c |DE>oscli</CODE><| 000055f0 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 6f 73 |/A>.<DD><CODE>os| 00005600 63 6c 69 28 73 29 20 3c 2f 43 4f 44 45 3e 20 53 |cli(s) </CODE> S| 00005610 65 6e 64 73 20 61 20 73 74 72 69 6e 67 20 73 20 |ends a string s | 00005620 74 6f 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6c |to the command l| 00005630 69 6e 65 0a 20 20 20 20 20 20 69 6e 74 65 72 70 |ine. interp| 00005640 72 65 74 65 72 2e 20 54 68 65 20 76 61 6c 75 65 |reter. The value| 00005650 20 3c 43 4f 44 45 3e 6e 69 6c 3c 2f 43 4f 44 45 | <CODE>nil</CODE| 00005660 3e 20 69 73 20 72 65 74 75 72 6e 65 64 2e 0a 0a |> is returned...| 00005670 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 70 69 22 |<DT><A NAME="pi"| 00005680 3e 3c 43 4f 44 45 3e 70 69 3c 2f 43 4f 44 45 3e |><CODE>pi</CODE>| 00005690 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 70 |</A>.<DD><CODE>p| 000056a0 69 20 3c 2f 43 4f 44 45 3e 20 69 73 20 61 6e 20 |i </CODE> is an | 000056b0 61 70 70 72 6f 78 69 6d 61 74 69 6f 6e 20 74 6f |approximation to| 000056c0 20 74 68 65 20 72 61 74 69 6f 20 6f 66 20 74 68 | the ratio of th| 000056d0 65 20 0a 20 20 20 20 63 69 72 63 75 6d 66 65 72 |e . circumfer| 000056e0 65 6e 63 65 20 6f 66 20 61 20 63 69 72 63 6c 65 |ence of a circle| 000056f0 20 74 6f 20 69 74 73 20 64 69 61 6d 65 74 65 72 | to its diameter| 00005700 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00005710 70 72 69 6e 74 22 3e 3c 43 4f 44 45 3e 70 72 69 |print"><CODE>pri| 00005720 6e 74 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 |nt</CODE></A>.<D| 00005730 44 3e 3c 43 4f 44 45 3e 70 72 69 6e 74 28 78 31 |D><CODE>print(x1| 00005740 2c 20 2e 2e 2e 20 2c 78 6e 29 3b 20 3c 2f 43 4f |, ... ,xn); </CO| 00005750 44 45 3e 20 50 72 69 6e 74 20 74 68 65 20 69 74 |DE> Print the it| 00005760 65 6d 73 20 0a 20 20 20 20 20 20 20 3c 43 4f 44 |ems . <COD| 00005770 45 3e 78 31 2c 20 2e 2e 2e 2e 20 78 6e 3c 2f 43 |E>x1, .... xn</C| 00005780 4f 44 45 3e 20 61 6e 64 20 72 65 74 75 72 6e 0a |ODE> and return.| 00005790 20 20 20 20 20 20 20 3c 43 4f 44 45 3e 6e 69 6c | <CODE>nil| 000057a0 3c 2f 43 4f 44 45 3e 2e 20 4e 65 77 6c 69 6e 65 |</CODE>. Newline| 000057b0 73 20 61 72 65 20 6e 6f 74 20 61 75 74 6f 6d 61 |s are not automa| 000057c0 74 69 63 61 6c 6c 79 20 0a 20 20 20 20 20 20 20 |tically . | 000057d0 61 70 70 65 6e 64 65 64 2e 20 54 68 65 20 64 69 |appended. The di| 000057e0 67 72 61 6d 73 20 3c 43 4f 44 45 3e 5c 6e 2c 20 |grams <CODE>\n, | 000057f0 5c 74 2c 20 5c 5c 3c 2f 43 4f 44 45 3e 20 63 61 |\t, \\</CODE> ca| 00005800 6e 20 62 65 20 75 73 65 64 20 0a 20 20 20 20 20 |n be used . | 00005810 20 20 69 6e 20 73 74 72 69 6e 67 73 20 66 6f 72 | in strings for| 00005820 20 6e 65 77 6c 69 6e 65 2c 20 74 61 62 20 61 6e | newline, tab an| 00005830 64 20 5c 2c 20 72 65 73 70 65 63 74 69 76 65 6c |d \, respectivel| 00005840 79 2e 0a 20 20 20 20 20 20 20 3c 43 4f 44 45 3e |y.. <CODE>| 00005850 70 72 69 6e 74 3c 2f 43 4f 44 45 3e 20 73 68 6f |print</CODE> sho| 00005860 75 6c 64 20 6e 6f 74 20 62 65 20 75 73 65 64 20 |uld not be used | 00005870 69 6e 20 61 20 77 69 6d 70 20 70 72 6f 67 72 61 |in a wimp progra| 00005880 6d 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d |m...<DT><A NAME=| 00005890 22 70 75 74 22 3e 3c 43 4f 44 45 3e 70 75 74 3c |"put"><CODE>put<| 000058a0 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c |/CODE></A>.<DD><| 000058b0 43 4f 44 45 3e 69 6e 20 62 75 66 66 65 72 20 70 |CODE>in buffer p| 000058c0 75 74 20 7b 78 31 3b 20 2e 2e 2e 2e 20 78 6e 3b |ut {x1; .... xn;| 000058d0 20 7d 20 3c 2f 43 4f 44 45 3e 20 53 65 65 0a 20 | } </CODE> See. | 000058e0 20 20 20 3c 41 20 48 52 45 46 3d 22 23 69 6e 22 | <A HREF="#in"| 000058f0 3e 3c 43 4f 44 45 3e 69 6e 3c 2f 43 4f 44 45 3e |><CODE>in</CODE>| 00005900 3c 2f 41 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 |</A>...<DT><A NA| 00005910 4d 45 3d 22 70 75 74 63 22 3e 3c 43 4f 44 45 3e |ME="putc"><CODE>| 00005920 70 75 74 63 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |putc</CODE></A>.| 00005930 3c 44 44 3e 3c 43 4f 44 45 3e 70 75 74 63 28 63 |<DD><CODE>putc(c| 00005940 68 2c 66 70 29 3b 20 3c 2f 43 4f 44 45 3e 20 57 |h,fp); </CODE> W| 00005950 72 69 74 65 73 20 74 68 65 20 63 68 61 72 61 63 |rites the charac| 00005960 74 65 72 20 63 68 20 74 6f 20 74 68 65 20 0a 20 |ter ch to the . | 00005970 20 20 20 69 6f 73 74 72 65 61 6d 20 3c 43 4f 44 | iostream <COD| 00005980 45 3e 66 70 3c 2f 43 4f 44 45 3e 2e 20 52 65 74 |E>fp</CODE>. Ret| 00005990 75 72 6e 73 20 3c 43 4f 44 45 3e 6e 69 6c 3c 2f |urns <CODE>nil</| 000059a0 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e |CODE>...<DT><A N| 000059b0 41 4d 45 3d 22 71 75 69 74 22 3e 3c 43 4f 44 45 |AME="quit"><CODE| 000059c0 3e 71 75 69 74 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |>quit</CODE></A>| 000059d0 0a 3c 44 44 3e 3c 43 4f 44 45 3e 71 75 69 74 28 |.<DD><CODE>quit(| 000059e0 73 29 3b 20 3c 2f 43 4f 44 45 3e 20 43 61 75 73 |s); </CODE> Caus| 000059f0 65 73 20 74 68 65 20 70 72 6f 67 72 61 6d 20 74 |es the program t| 00005a00 6f 20 65 78 69 74 20 77 69 74 68 20 61 20 6d 65 |o exit with a me| 00005a10 73 73 61 67 65 0a 20 20 20 20 20 20 20 3c 43 4f |ssage. <CO| 00005a20 44 45 3e 73 3c 2f 43 4f 44 45 3e 20 74 6f 20 3c |DE>s</CODE> to <| 00005a30 43 4f 44 45 3e 73 74 64 65 72 72 3c 2f 43 4f 44 |CODE>stderr</COD| 00005a40 45 3e 20 61 6e 64 20 72 65 74 75 72 6e 73 0a 20 |E> and returns. | 00005a50 20 20 20 20 20 20 3c 43 4f 44 45 3e 6e 69 6c 3c | <CODE>nil<| 00005a60 2f 43 4f 44 45 3e 2e 20 49 6e 20 77 69 6d 70 20 |/CODE>. In wimp | 00005a70 70 72 6f 67 72 61 6d 73 20 0a 20 20 20 20 20 20 |programs . | 00005a80 20 3c 43 4f 44 45 3e 77 69 6d 70 5f 63 6c 6f 73 | <CODE>wimp_clos| 00005a90 65 64 6f 77 6e 3c 2f 43 4f 44 45 3e 20 69 73 20 |edown</CODE> is | 00005aa0 63 61 6c 6c 65 64 2e 0a 0a 3c 44 54 3e 3c 41 20 |called...<DT><A | 00005ab0 4e 41 4d 45 3d 22 72 65 70 65 61 74 22 3e 3c 43 |NAME="repeat"><C| 00005ac0 4f 44 45 3e 72 65 70 65 61 74 3c 2f 43 4f 44 45 |ODE>repeat</CODE| 00005ad0 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e |></A>.<DD><CODE>| 00005ae0 72 65 70 65 61 74 20 3c 2f 43 4f 44 45 3e 20 69 |repeat </CODE> i| 00005af0 73 20 61 20 73 79 6e 6f 6e 79 6d 20 66 6f 72 20 |s a synonym for | 00005b00 0a 20 20 20 3c 41 20 48 52 45 46 3d 22 23 64 6f |. <A HREF="#do| 00005b10 22 3e 3c 43 4f 44 45 3e 64 6f 3c 2f 43 4f 44 45 |"><CODE>do</CODE| 00005b20 3e 3c 2f 41 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e |></A>...<DT><A N| 00005b30 41 4d 45 3d 22 72 6e 64 22 3e 3c 43 4f 44 45 3e |AME="rnd"><CODE>| 00005b40 72 6e 64 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c |rnd</CODE></A>.<| 00005b50 44 44 3e 3c 43 4f 44 45 3e 72 6e 64 28 29 20 3c |DD><CODE>rnd() <| 00005b60 2f 43 4f 44 45 3e 20 72 65 74 75 72 6e 73 20 61 |/CODE> returns a| 00005b70 20 72 61 6e 64 6f 6d 20 70 6f 73 69 74 69 76 65 | random positive| 00005b80 20 69 6e 74 65 67 65 72 2e 0a 0a 3c 44 54 3e 3c | integer...<DT><| 00005b90 41 20 4e 41 4d 45 3d 22 72 65 74 75 72 6e 22 3e |A NAME="return">| 00005ba0 3c 43 4f 44 45 3e 72 65 74 75 72 6e 3c 2f 43 4f |<CODE>return</CO| 00005bb0 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 00005bc0 45 3e 72 65 74 75 72 6e 20 78 3b 20 3c 2f 43 4f |E>return x; </CO| 00005bd0 44 45 3e 20 72 65 74 75 72 6e 73 20 3c 43 4f 44 |DE> returns <COD| 00005be0 45 3e 78 20 3c 2f 43 4f 44 45 3e 20 61 73 20 74 |E>x </CODE> as t| 00005bf0 68 65 0a 20 20 20 20 20 20 20 76 61 6c 75 65 20 |he. value | 00005c00 6f 66 20 61 20 66 75 6e 63 74 69 6f 6e 20 6f 72 |of a function or| 00005c10 20 6d 65 74 68 6f 64 2e 20 3c 43 4f 44 45 3e 72 | method. <CODE>r| 00005c20 65 74 75 72 6e 3b 20 3c 2f 43 4f 44 45 3e 0a 20 |eturn; </CODE>. | 00005c30 20 20 20 20 20 20 69 73 20 65 71 75 69 76 61 6c | is equival| 00005c40 65 6e 74 20 74 6f 20 3c 43 4f 44 45 3e 72 65 74 |ent to <CODE>ret| 00005c50 75 72 6e 20 6e 69 6c 3b 20 3c 2f 43 4f 44 45 3e |urn nil; </CODE>| 00005c60 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00005c70 73 65 65 64 22 3e 3c 43 4f 44 45 3e 73 65 65 64 |seed"><CODE>seed| 00005c80 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e |</CODE></A>.<DD>| 00005c90 3c 43 4f 44 45 3e 73 65 65 64 28 6e 29 20 3b 3c |<CODE>seed(n) ;<| 00005ca0 2f 43 4f 44 45 3e 20 53 65 65 64 73 20 74 68 65 |/CODE> Seeds the| 00005cb0 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 67 | random number g| 00005cc0 65 6e 65 72 61 74 6f 72 20 0a 20 20 20 20 20 77 |enerator . w| 00005cd0 69 74 68 20 74 68 65 20 69 6e 74 65 67 65 72 20 |ith the integer | 00005ce0 3c 43 4f 44 45 3e 6e 20 3c 2f 43 4f 44 45 3e 20 |<CODE>n </CODE> | 00005cf0 61 6e 64 20 72 65 74 75 72 6e 73 20 0a 20 20 20 |and returns . | 00005d00 20 20 3c 43 4f 44 45 3e 6e 69 6c 20 3c 2f 43 4f | <CODE>nil </CO| 00005d10 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d |DE>...<DT><A NAM| 00005d20 45 3d 22 73 69 6e 22 3e 3c 43 4f 44 45 3e 73 69 |E="sin"><CODE>si| 00005d30 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |n</CODE></A>.<DD| 00005d40 3e 3c 43 4f 44 45 3e 73 69 6e 28 78 29 20 3c 2f |><CODE>sin(x) </| 00005d50 43 4f 44 45 3e 20 69 73 20 73 69 6e 65 20 6f 66 |CODE> is sine of| 00005d60 20 74 68 65 20 72 65 61 6c 20 3c 43 4f 44 45 3e | the real <CODE>| 00005d70 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c 44 54 3e |x </CODE>...<DT>| 00005d80 3c 41 20 4e 41 4d 45 3d 22 73 69 7a 65 6f 66 22 |<A NAME="sizeof"| 00005d90 3e 3c 43 4f 44 45 3e 73 69 7a 65 6f 66 3c 2f 43 |><CODE>sizeof</C| 00005da0 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f |ODE></A>.<DD><CO| 00005db0 44 45 3e 73 69 7a 65 6f 66 28 73 29 20 3c 2f 43 |DE>sizeof(s) </C| 00005dc0 4f 44 45 3e 20 72 65 74 75 72 6e 73 20 74 68 65 |ODE> returns the| 00005dd0 20 6e 75 6d 62 65 72 20 6f 66 20 63 68 61 72 61 | number of chara| 00005de0 63 74 65 72 73 20 69 6e 20 61 20 73 74 72 69 6e |cters in a strin| 00005df0 67 0a 20 20 20 20 20 3c 43 4f 44 45 3e 73 20 3c |g. <CODE>s <| 00005e00 2f 43 4f 44 45 3e 2c 20 6f 72 20 74 68 65 20 6e |/CODE>, or the n| 00005e10 75 6d 62 65 72 20 6f 66 20 63 6f 6d 70 6f 6e 65 |umber of compone| 00005e20 6e 74 73 20 6f 66 20 61 20 76 65 63 74 6f 72 20 |nts of a vector | 00005e30 0a 20 20 20 20 20 3c 43 4f 44 45 3e 73 20 3c 2f |. <CODE>s </| 00005e40 43 4f 44 45 3e 2c 20 61 73 20 61 6e 20 69 6e 74 |CODE>, as an int| 00005e50 65 67 65 72 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 |eger...<DT><A NA| 00005e60 4d 45 3d 22 73 71 72 74 22 3e 3c 43 4f 44 45 3e |ME="sqrt"><CODE>| 00005e70 73 71 72 74 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a |sqrt</CODE></A>.| 00005e80 3c 44 44 3e 3c 43 4f 44 45 3e 73 71 72 74 28 78 |<DD><CODE>sqrt(x| 00005e90 29 20 3c 2f 43 4f 44 45 3e 20 69 73 20 73 71 75 |) </CODE> is squ| 00005ea0 61 72 65 2d 72 6f 6f 74 20 6f 66 20 74 68 65 20 |are-root of the | 00005eb0 72 65 61 6c 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 |real <CODE>x </C| 00005ec0 4f 44 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 |ODE>...<DT><A NA| 00005ed0 4d 45 3d 22 73 74 61 72 74 5f 74 61 73 6b 22 3e |ME="start_task">| 00005ee0 3c 43 4f 44 45 3e 73 74 61 72 74 5f 74 61 73 6b |<CODE>start_task| 00005ef0 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e |</CODE></A>.<DD>| 00005f00 3c 43 4f 44 45 3e 73 74 61 72 74 5f 74 61 73 6b |<CODE>start_task| 00005f10 28 73 29 20 3c 2f 43 4f 44 45 3e 20 74 61 6b 65 |(s) </CODE> take| 00005f20 73 20 61 20 63 6f 6d 6d 61 6e 64 20 69 6e 20 74 |s a command in t| 00005f30 68 65 20 73 74 72 69 6e 67 20 0a 20 20 20 20 20 |he string . | 00005f40 20 3c 43 4f 44 45 3e 73 20 3c 2f 43 4f 44 45 3e | <CODE>s </CODE>| 00005f50 20 74 6f 20 73 74 61 72 74 20 75 70 20 61 20 63 | to start up a c| 00005f60 68 69 6c 64 20 74 61 73 6b 2c 20 61 6e 64 20 72 |hild task, and r| 00005f70 65 74 75 72 6e 73 20 69 74 73 20 74 61 73 6b 0a |eturns its task.| 00005f80 20 20 20 20 20 20 68 61 6e 64 6c 65 2e 20 54 68 | handle. Th| 00005f90 69 73 20 77 6f 72 6b 73 20 62 6f 74 68 20 66 72 |is works both fr| 00005fa0 6f 6d 20 3c 41 20 48 52 45 46 3d 22 52 75 6e 23 |om <A HREF="Run#| 00005fb0 42 6f 62 46 69 6c 65 3e 42 6f 62 46 69 6c 65 73 |BobFile>BobFiles| 00005fc0 20 3c 2f 41 3e 0a 20 20 20 20 20 20 28 69 2e 65 | </A>. (i.e| 00005fd0 2e 20 66 72 6f 6d 20 61 20 63 6f 6d 6d 61 6e 64 |. from a command| 00005fe0 20 77 69 6e 64 6f 77 29 20 6f 72 20 66 72 6f 6d | window) or from| 00005ff0 20 0a 20 20 20 20 20 20 3c 41 20 48 52 45 46 3d | . <A HREF=| 00006000 22 52 75 6e 23 42 6f 62 54 61 73 6b 3e 42 6f 62 |"Run#BobTask>Bob| 00006010 54 61 73 6b 73 3c 2f 41 3e 20 28 69 2e 65 2e 20 |Tasks</A> (i.e. | 00006020 66 72 6f 6d 20 61 20 74 61 73 6b 77 69 6e 64 6f |from a taskwindo| 00006030 77 29 2e 0a 20 20 20 20 20 20 54 68 69 73 20 66 |w).. This f| 00006040 75 6e 63 74 69 6f 6e 20 73 68 6f 75 6c 64 20 6f |unction should o| 00006050 6e 6c 79 20 62 65 20 75 73 65 64 20 6f 75 74 73 |nly be used outs| 00006060 69 64 65 20 77 69 6d 70 20 70 72 6f 67 72 61 6d |ide wimp program| 00006070 73 20 0a 20 20 20 20 20 20 28 69 2e 65 2e 20 62 |s . (i.e. b| 00006080 65 66 6f 72 65 20 3c 41 20 48 52 45 46 3d 22 23 |efore <A HREF="#| 00006090 77 69 6d 70 5f 69 6e 69 74 3e 3c 43 4f 44 45 3e |wimp_init><CODE>| 000060a0 77 69 6d 70 5f 69 6e 69 74 3c 2f 43 4f 44 45 3e |wimp_init</CODE>| 000060b0 3c 2f 41 3e 0a 20 20 20 20 20 20 6f 72 20 61 66 |</A>. or af| 000060c0 74 65 72 20 3c 41 20 48 52 45 46 3d 22 23 77 69 |ter <A HREF="#wi| 000060d0 6d 70 5f 63 6c 6f 73 65 64 6f 77 6e 3e 3c 43 4f |mp_closedown><CO| 000060e0 44 45 3e 77 69 6d 70 5f 63 6c 6f 73 65 64 6f 77 |DE>wimp_closedow| 000060f0 6e 20 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 2e 0a 20 |n </CODE></A>.. | 00006100 20 20 20 20 20 54 68 65 72 65 20 61 72 65 20 6f | There are o| 00006110 74 68 65 72 20 6d 65 61 6e 73 20 6f 66 20 73 74 |ther means of st| 00006120 61 72 74 69 6e 67 20 61 20 63 68 69 6c 64 20 74 |arting a child t| 00006130 61 73 6b 20 66 72 6f 6d 20 77 69 74 68 69 6e 20 |ask from within | 00006140 61 20 77 69 6d 70 20 0a 20 20 20 20 20 20 70 72 |a wimp . pr| 00006150 6f 67 72 61 6d 2e 0a 0a 3c 44 54 3e 3c 41 20 4e |ogram...<DT><A N| 00006160 41 4d 45 3d 22 73 74 61 74 69 63 22 3e 3c 43 4f |AME="static"><CO| 00006170 44 45 3e 73 74 61 74 69 63 3c 2f 43 4f 44 45 3e |DE>static</CODE>| 00006180 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 73 |</A>.<DD><CODE>s| 00006190 74 61 74 69 63 20 3c 2f 43 4f 44 45 3e 20 70 72 |tatic </CODE> pr| 000061a0 65 66 69 78 20 66 6f 72 20 74 68 65 20 64 65 63 |efix for the dec| 000061b0 6c 61 72 61 74 69 6f 6e 20 6f 66 0a 20 20 20 20 |laration of. | 000061c0 73 74 61 74 69 63 20 64 61 74 61 20 61 6e 64 20 |static data and | 000061d0 6d 65 74 68 6f 64 73 20 69 6e 20 61 20 63 6c 61 |methods in a cla| 000061e0 73 73 20 64 65 66 69 6e 69 74 69 6f 6e 2e 20 53 |ss definition. S| 000061f0 75 63 68 20 0a 20 20 20 20 64 61 74 61 20 61 6e |uch . data an| 00006200 64 20 6d 65 74 68 6f 64 73 20 61 72 65 20 73 68 |d methods are sh| 00006210 61 72 65 64 20 62 79 20 61 6c 6c 20 69 6e 73 74 |ared by all inst| 00006220 61 6e 63 65 73 20 6f 66 20 61 20 0a 20 20 20 20 |ances of a . | 00006230 63 6c 61 73 73 2e 20 53 74 61 74 69 63 20 6d 65 |class. Static me| 00006240 74 68 6f 64 73 20 6d 61 79 20 6e 6f 74 20 75 73 |thods may not us| 00006250 65 20 74 68 65 20 76 61 72 69 61 62 6c 65 20 0a |e the variable .| 00006260 20 20 20 20 3c 41 20 48 52 45 46 3d 22 23 74 68 | <A HREF="#th| 00006270 69 73 22 3e 3c 43 4f 44 45 3e 74 68 69 73 20 3c |is"><CODE>this <| 00006280 2f 43 4f 44 45 3e 3c 2f 41 3e 2e 20 20 41 20 74 |/CODE></A>. A t| 00006290 79 70 69 63 61 6c 20 0a 20 20 20 20 75 73 65 20 |ypical . use | 000062a0 6f 66 20 73 74 61 74 69 63 20 76 61 72 69 61 62 |of static variab| 000062b0 6c 65 73 20 77 6f 75 6c 64 20 62 65 20 61 20 76 |les would be a v| 000062c0 61 72 69 61 62 6c 65 20 74 6f 20 63 6f 75 6e 74 |ariable to count| 000062d0 20 0a 20 20 20 20 74 68 65 20 6e 75 6d 62 65 72 | . the number| 000062e0 20 6f 66 20 69 6e 73 74 61 6e 63 65 20 6f 62 6a | of instance obj| 000062f0 65 63 74 73 20 6f 66 20 61 20 63 65 72 74 61 69 |ects of a certai| 00006300 6e 20 6b 69 6e 64 2e 0a 3c 44 44 3e 20 45 2e 67 |n kind..<DD> E.g| 00006310 2e 3c 43 4f 44 45 3e 3c 50 52 45 3e 0a 20 20 20 |.<CODE><PRE>. | 00006320 20 63 6c 61 73 73 20 66 6f 6f 0a 20 20 20 20 7b | class foo. {| 00006330 0a 20 20 20 20 20 73 74 61 74 69 63 20 74 6f 74 |. static tot| 00006340 61 6c 3b 0a 20 20 20 20 20 2e 2e 2e 2e 2e 2e 2e |al;. .......| 00006350 2e 2e 2e 20 20 0a 20 20 20 20 7d 0a 0a 20 20 20 |... . }.. | 00006360 20 66 6f 6f 3a 3a 66 6f 6f 28 2e 2e 2e 29 0a 20 | foo::foo(...). | 00006370 20 20 20 7b 0a 20 20 20 20 20 69 66 20 28 74 79 | {. if (ty| 00006380 70 65 6f 66 28 74 6f 74 61 6c 29 29 20 74 6f 74 |peof(total)) tot| 00006390 61 6c 20 2b 3d 20 31 3b 0a 20 20 20 20 20 65 6c |al += 1;. el| 000063a0 73 65 20 74 6f 74 61 6c 20 3d 20 31 3b 0a 20 20 |se total = 1;. | 000063b0 20 20 20 2e 2e 2e 2e 2e 2e 2e 2e 2e 2e 2e 2e 2e | .............| 000063c0 2e 2e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 66 6f |... }.. fo| 000063d0 6f 3a 3a 63 75 72 72 65 6e 74 5f 6e 75 6d 62 65 |o::current_numbe| 000063e0 72 28 29 0a 20 20 20 20 7b 20 72 65 74 75 72 6e |r(). { return| 000063f0 20 74 6f 74 61 6c 3b 20 7d 0a 20 20 20 20 3c 2f | total; }. </| 00006400 50 52 45 3e 3c 2f 43 4f 44 45 3e 0a 20 20 20 20 |PRE></CODE>. | 00006410 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 73 |..<DT><A NAME="s| 00006420 74 64 65 72 72 22 3e 3c 43 4f 44 45 3e 73 74 64 |tderr"><CODE>std| 00006430 65 72 72 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c |err</CODE></A>.<| 00006440 44 44 3e 3c 43 4f 44 45 3e 73 74 64 65 72 72 20 |DD><CODE>stderr | 00006450 3c 2f 43 4f 44 45 3e 20 69 73 20 61 20 62 75 69 |</CODE> is a bui| 00006460 6c 74 2d 69 6e 20 69 6f 73 74 72 65 61 6d 2e 0a |lt-in iostream..| 00006470 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 73 74 |.<DT><A NAME="st| 00006480 64 69 6e 22 3e 3c 43 4f 44 45 3e 73 74 64 69 6e |din"><CODE>stdin| 00006490 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e |</CODE></A>.<DD>| 000064a0 3c 43 4f 44 45 3e 73 74 64 69 6e 20 3c 2f 43 4f |<CODE>stdin </CO| 000064b0 44 45 3e 20 69 73 20 61 20 62 75 69 6c 74 2d 69 |DE> is a built-i| 000064c0 6e 20 69 6f 73 74 72 65 61 6d 2e 0a 0a 3c 44 54 |n iostream...<DT| 000064d0 3e 3c 41 20 4e 41 4d 45 3d 22 73 74 64 6f 75 74 |><A NAME="stdout| 000064e0 22 3e 3c 43 4f 44 45 3e 73 74 64 6f 75 74 3c 2f |"><CODE>stdout</| 000064f0 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 |CODE></A>.<DD><C| 00006500 4f 44 45 3e 73 74 64 6f 75 74 20 3c 2f 43 4f 44 |ODE>stdout </COD| 00006510 45 3e 20 69 73 20 61 20 62 75 69 6c 74 2d 69 6e |E> is a built-in| 00006520 20 69 6f 73 74 72 65 61 6d 2e 0a 0a 3c 44 54 3e | iostream...<DT>| 00006530 3c 41 20 4e 41 4d 45 3d 22 73 77 69 22 3e 3c 43 |<A NAME="swi"><C| 00006540 4f 44 45 3e 73 77 69 3c 2f 43 4f 44 45 3e 3c 2f |ODE>swi</CODE></| 00006550 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 73 77 69 |A>.<DD><CODE>swi| 00006560 28 78 2c 72 29 20 3c 2f 43 4f 44 45 3e 20 63 61 |(x,r) </CODE> ca| 00006570 6c 6c 73 20 53 57 49 20 3c 43 4f 44 45 3e 78 20 |lls SWI <CODE>x | 00006580 3c 2f 43 4f 44 45 3e 2c 20 67 69 76 65 6e 0a 20 |</CODE>, given. | 00006590 20 20 20 65 69 74 68 65 72 20 61 73 20 61 20 73 | either as a s| 000065a0 74 72 69 6e 67 20 6f 72 20 6e 75 6d 62 65 72 2c |tring or number,| 000065b0 20 77 69 74 68 20 72 65 67 69 73 74 65 72 73 20 | with registers | 000065c0 52 30 2d 52 37 20 70 72 65 6c 6f 61 64 65 64 0a |R0-R7 preloaded.| 000065d0 20 20 20 20 77 69 74 68 20 74 68 65 20 66 69 72 | with the fir| 000065e0 73 74 20 38 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 |st 8 components | 000065f0 6f 66 20 74 68 65 20 76 65 63 74 6f 72 20 3c 43 |of the vector <C| 00006600 4f 44 45 3e 72 20 3c 2f 43 4f 44 45 3e 2c 0a 20 |ODE>r </CODE>,. | 00006610 20 20 20 61 6e 64 20 72 65 74 75 72 6e 73 20 3c | and returns <| 00006620 43 4f 44 45 3e 6e 69 6c 20 3c 2f 43 4f 44 45 3e |CODE>nil </CODE>| 00006630 20 77 69 74 68 20 74 68 65 20 63 6f 6d 70 6f 6e | with the compon| 00006640 65 6e 74 73 20 6f 66 0a 20 20 20 20 3c 43 4f 44 |ents of. <COD| 00006650 45 3e 72 20 3c 2f 43 4f 44 45 3e 20 75 70 64 61 |E>r </CODE> upda| 00006660 74 65 64 20 74 6f 20 74 68 65 20 72 65 74 75 72 |ted to the retur| 00006670 6e 65 64 20 76 61 6c 75 65 73 20 69 6e 20 72 65 |ned values in re| 00006680 67 69 73 74 65 72 73 0a 20 20 20 20 52 30 2d 52 |gisters. R0-R| 00006690 37 2e 20 4e 6f 74 65 20 74 68 61 74 20 65 76 65 |7. Note that eve| 000066a0 6e 20 74 68 6f 75 67 68 20 61 20 53 57 49 20 6d |n though a SWI m| 000066b0 61 79 20 70 61 73 73 20 6e 6f 20 76 61 6c 75 65 |ay pass no value| 000066c0 73 20 69 6e 20 0a 20 20 20 20 72 65 67 69 73 74 |s in . regist| 000066d0 65 72 73 2c 20 69 74 20 69 73 20 6e 65 63 65 73 |ers, it is neces| 000066e0 73 61 72 79 20 66 6f 72 20 74 68 65 20 73 65 63 |sary for the sec| 000066f0 6f 6e 64 20 61 72 67 75 6d 65 6e 74 20 74 6f 20 |ond argument to | 00006700 62 65 20 61 20 76 65 63 74 6f 72 20 0a 20 20 20 |be a vector . | 00006710 20 77 69 74 68 20 61 74 20 6c 65 61 73 74 20 38 | with at least 8| 00006720 20 63 6f 6d 70 6f 6e 65 6e 74 73 2e 0a 3c 44 44 | components..<DD| 00006730 3e 45 2e 67 2e 3c 43 4f 44 45 3e 3c 50 52 45 3e |>E.g.<CODE><PRE>| 00006740 0a 20 20 20 20 65 76 65 6e 74 5f 70 72 6f 63 65 |. event_proce| 00006750 73 73 28 6d 61 73 6b 70 74 72 2c 62 75 66 66 65 |ss(maskptr,buffe| 00006760 72 2c 61 63 74 69 6f 6e 2c 75 73 65 72 29 0a 20 |r,action,user). | 00006770 20 20 20 7b 0a 20 20 20 20 20 6c 6f 63 61 6c 20 | {. local | 00006780 72 2c 20 72 65 73 70 6f 6e 64 2c 20 67 6f 5f 6f |r, respond, go_o| 00006790 6e 3b 0a 20 20 20 20 20 72 20 3d 20 6e 65 77 76 |n;. r = newv| 000067a0 65 63 74 6f 72 28 38 29 3b 0a 20 20 20 20 20 67 |ector(8);. g| 000067b0 6f 5f 6f 6e 20 3d 20 54 52 55 45 3b 0a 20 20 20 |o_on = TRUE;. | 000067c0 20 20 77 68 69 6c 65 28 67 6f 5f 6f 6e 29 0a 20 | while(go_on). | 000067d0 20 20 20 20 7b 0a 20 20 20 20 20 20 72 5b 30 5d | {. r[0]| 000067e0 20 3d 20 6d 61 73 6b 70 74 72 5b 30 5d 3b 0a 20 | = maskptr[0];. | 000067f0 20 20 20 20 20 72 5b 31 5d 20 3d 20 62 75 66 66 | r[1] = buff| 00006800 65 72 3b 0a 20 20 20 20 20 20 73 77 69 28 22 57 |er;. swi("W| 00006810 69 6d 70 5f 50 6f 6c 6c 22 2c 72 29 3b 0a 20 20 |imp_Poll",r);. | 00006820 20 20 20 20 67 6f 5f 6f 6e 20 3d 0a 20 20 20 20 | go_on =. | 00006830 20 20 20 20 28 74 79 70 65 6f 66 28 72 65 73 70 | (typeof(resp| 00006840 6f 6e 64 20 3d 20 61 63 74 69 6f 6e 5b 72 5b 30 |ond = action[r[0| 00006850 5d 5d 29 0a 20 20 20 20 20 20 20 20 20 20 20 3d |]]). =| 00006860 3d 20 42 59 54 45 43 4f 44 45 29 3f 72 65 73 70 |= BYTECODE)?resp| 00006870 6f 6e 64 28 62 75 66 66 65 72 2c 75 73 65 72 2c |ond(buffer,user,| 00006880 6d 61 73 6b 70 74 72 29 3a 54 52 55 45 3b 0a 20 |maskptr):TRUE;. | 00006890 20 20 20 20 7d 0a 20 20 20 20 20 77 69 6d 70 5f | }. wimp_| 000068a0 63 6c 6f 73 65 64 6f 77 6e 28 29 3b 0a 20 20 20 |closedown();. | 000068b0 20 7d 20 20 20 20 20 20 3c 2f 50 52 45 3e 3c 2f | } </PRE></| 000068c0 43 4f 44 45 3e 0a 0a 0a 3c 44 54 3e 3c 41 20 4e |CODE>...<DT><A N| 000068d0 41 4d 45 3d 22 73 77 69 74 63 68 22 3e 3c 43 4f |AME="switch"><CO| 000068e0 44 45 3e 73 77 69 74 63 68 3c 2f 43 4f 44 45 3e |DE>switch</CODE>| 000068f0 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 73 |</A>.<DD><CODE>s| 00006900 77 69 74 63 68 20 28 63 29 20 7b 20 2e 2e 2e 2e |witch (c) { ....| 00006910 20 7d 20 3c 2f 43 4f 44 45 3e 20 69 73 20 74 68 | } </CODE> is th| 00006920 65 20 6d 75 6c 74 69 62 72 61 6e 63 68 20 0a 20 |e multibranch . | 00006930 20 20 20 20 20 63 6f 6e 64 69 74 69 6f 6e 61 6c | conditional| 00006940 20 73 74 72 75 63 74 75 72 65 2e 0a 0a 3c 44 54 | structure...<DT| 00006950 3e 3c 41 20 4e 41 4d 45 3d 22 73 79 73 76 61 72 |><A NAME="sysvar| 00006960 22 3e 3c 43 4f 44 45 3e 73 79 73 76 61 72 3c 2f |"><CODE>sysvar</| 00006970 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 |CODE></A>.<DD><C| 00006980 4f 44 45 3e 73 79 73 76 61 72 28 73 29 20 3c 2f |ODE>sysvar(s) </| 00006990 43 4f 44 45 3e 20 20 52 65 74 75 72 6e 73 20 74 |CODE> Returns t| 000069a0 68 65 20 73 74 72 69 6e 67 20 76 61 6c 75 65 20 |he string value | 000069b0 6f 66 20 74 68 65 20 0a 20 20 20 20 20 20 73 74 |of the . st| 000069c0 72 69 6e 67 20 73 79 73 74 65 6d 20 76 61 72 69 |ring system vari| 000069d0 61 62 6c 65 20 3c 43 4f 44 45 3e 73 20 3c 2f 43 |able <CODE>s </C| 000069e0 4f 44 45 3e 20 6f 72 20 3c 43 4f 44 45 3e 6e 69 |ODE> or <CODE>ni| 000069f0 6c 20 3c 2f 43 4f 44 45 3e 0a 20 20 20 20 20 20 |l </CODE>. | 00006a00 69 66 20 74 68 65 20 76 61 72 69 61 62 6c 65 20 |if the variable | 00006a10 69 73 20 75 6e 73 65 74 2e 0a 3c 44 44 3e 20 45 |is unset..<DD> E| 00006a20 2e 67 2e 20 3c 43 4f 44 45 3e 70 72 69 6e 74 28 |.g. <CODE>print(| 00006a30 73 79 73 76 61 72 28 26 71 75 6f 74 3b 42 6f 62 |sysvar("Bob| 00006a40 24 50 61 74 68 26 71 75 6f 74 3b 29 2c 26 71 75 |$Path"),&qu| 00006a50 6f 74 3b 5c 6e 26 71 75 6f 74 3b 29 3b 3c 2f 43 |ot;\n");</C| 00006a60 4f 44 45 3e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d |ODE>..<DT><A NAM| 00006a70 45 3d 22 74 61 6e 22 3e 3c 43 4f 44 45 3e 74 61 |E="tan"><CODE>ta| 00006a80 6e 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |n</CODE></A>.<DD| 00006a90 3e 3c 43 4f 44 45 3e 74 61 6e 28 78 29 20 3c 2f |><CODE>tan(x) </| 00006aa0 43 4f 44 45 3e 20 69 73 20 74 61 6e 67 65 6e 74 |CODE> is tangent| 00006ab0 20 6f 66 20 74 68 65 20 72 65 61 6c 20 3c 43 4f | of the real <CO| 00006ac0 44 45 3e 78 20 3c 2f 43 4f 44 45 3e 2e 0a 0a 3c |DE>x </CODE>...<| 00006ad0 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 74 68 69 73 |DT><A NAME="this| 00006ae0 22 3e 3c 43 4f 44 45 3e 74 68 69 73 3c 2f 43 4f |"><CODE>this</CO| 00006af0 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 00006b00 45 3e 74 68 69 73 20 3c 2f 43 4f 44 45 3e 20 69 |E>this </CODE> i| 00006b10 73 20 61 20 76 61 72 69 61 62 6c 65 20 74 68 61 |s a variable tha| 00006b20 74 20 63 61 6e 20 62 65 20 75 73 65 64 20 69 6e |t can be used in| 00006b30 20 61 20 6d 65 74 68 6f 64 0a 20 20 74 6f 20 72 | a method. to r| 00006b40 65 66 65 72 20 74 6f 20 74 68 65 20 69 6e 73 74 |efer to the inst| 00006b50 61 6e 63 65 20 6f 62 6a 65 63 74 20 75 73 69 6e |ance object usin| 00006b60 67 20 74 68 65 20 6d 65 74 68 6f 64 2e 0a 3c 44 |g the method..<D| 00006b70 44 3e 45 2e 67 2e 3c 43 4f 44 45 3e 3c 50 52 45 |D>E.g.<CODE><PRE| 00006b80 3e 0a 20 20 20 20 20 66 6f 6f 3a 3a 6d 65 74 68 |>. foo::meth| 00006b90 6f 64 41 28 20 2e 2e 20 29 0a 20 20 20 20 20 7b |odA( .. ). {| 00006ba0 0a 20 20 20 20 20 20 20 2e 2e 2e 2e 20 74 68 69 |. .... thi| 00006bb0 73 2d 26 67 74 3b 6d 65 74 68 6f 64 42 28 2e 2e |s->methodB(..| 00006bc0 2e 29 20 2e 2e 2e 0a 20 20 20 20 20 7d 20 3c 2f |.) .... } </| 00006bd0 50 52 45 3e 3c 2f 43 4f 44 45 3e 0a 0a 3c 44 54 |PRE></CODE>..<DT| 00006be0 3e 3c 41 20 4e 41 4d 45 3d 22 74 69 6d 65 22 3e |><A NAME="time">| 00006bf0 3c 43 4f 44 45 3e 74 69 6d 65 3c 2f 43 4f 44 45 |<CODE>time</CODE| 00006c00 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e |></A>.<DD><CODE>| 00006c10 74 69 6d 65 28 29 20 3c 2f 43 4f 44 45 3e 20 52 |time() </CODE> R| 00006c20 65 74 75 72 6e 73 20 74 68 65 20 66 69 72 73 74 |eturns the first| 00006c30 20 33 32 20 62 69 74 73 20 6f 66 20 74 68 65 20 | 32 bits of the | 00006c40 74 69 6d 65 20 69 6e 20 0a 20 20 20 20 20 20 20 |time in . | 00006c50 20 20 20 20 63 65 6e 74 69 73 65 63 6f 6e 64 73 | centiseconds| 00006c60 20 73 69 6e 63 65 20 74 68 65 20 62 65 67 69 6e | since the begin| 00006c70 6e 69 6e 67 20 6f 66 20 74 68 65 20 63 65 6e 74 |ning of the cent| 00006c80 75 72 79 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d |ury...<DT><A NAM| 00006c90 45 3d 22 74 79 70 65 6f 66 22 3e 3c 43 4f 44 45 |E="typeof"><CODE| 00006ca0 3e 74 79 70 65 6f 66 3c 2f 43 4f 44 45 3e 3c 2f |>typeof</CODE></| 00006cb0 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 74 79 70 |A>.<DD><CODE>typ| 00006cc0 65 6f 66 28 78 29 20 3c 2f 43 4f 44 45 3e 20 72 |eof(x) </CODE> r| 00006cd0 65 74 75 72 6e 73 20 74 68 65 20 69 6e 74 65 67 |eturns the integ| 00006ce0 65 72 20 63 6f 64 65 20 0a 20 20 20 20 64 65 73 |er code . des| 00006cf0 63 72 69 62 69 6e 67 20 74 68 65 20 74 79 70 65 |cribing the type| 00006d00 20 6f 66 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f | of <CODE>x </CO| 00006d10 44 45 3e 2e 20 54 68 65 20 74 79 70 65 20 6f 66 |DE>. The type of| 00006d20 20 3c 43 4f 44 45 3e 6e 69 6c 20 3c 2f 43 4f 44 | <CODE>nil </COD| 00006d30 45 3e 0a 20 20 20 20 69 73 20 30 2c 20 61 6e 64 |E>. is 0, and| 00006d40 20 61 6c 6c 20 6f 74 68 65 72 20 76 61 6c 75 65 | all other value| 00006d50 73 20 72 65 74 75 72 6e 20 61 20 6e 6f 6e 7a 65 |s return a nonze| 00006d60 72 6f 20 76 61 6c 75 65 2e 20 0a 20 20 20 20 54 |ro value. . T| 00006d70 68 69 73 20 69 73 20 75 73 65 66 75 6c 20 66 6f |his is useful fo| 00006d80 72 20 63 6f 70 69 6e 67 20 77 69 74 68 20 75 6e |r coping with un| 00006d90 64 65 66 69 6e 65 64 20 76 65 63 74 6f 72 20 63 |defined vector c| 00006da0 6f 6d 70 6f 6e 65 6e 74 73 2e 0a 3c 44 44 3e 20 |omponents..<DD> | 00006db0 45 2e 67 2e 20 3c 43 4f 44 45 3e 20 61 20 3d 20 |E.g. <CODE> a = | 00006dc0 74 79 70 65 6f 66 28 61 29 3f 61 3a 30 3b 3c 2f |typeof(a)?a:0;</| 00006dd0 43 4f 44 45 3e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 |CODE>..<DT><A NA| 00006de0 4d 45 3d 22 75 6e 74 69 6c 22 3e 3c 43 4f 44 45 |ME="until"><CODE| 00006df0 3e 75 6e 74 69 6c 3c 2f 43 4f 44 45 3e 3c 2f 41 |>until</CODE></A| 00006e00 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 75 6e 74 69 |>.<DD><CODE>unti| 00006e10 6c 20 63 20 3c 2f 43 4f 44 45 3e 20 74 65 72 6d |l c </CODE> term| 00006e20 69 6e 61 74 69 6e 67 20 63 6f 6e 64 69 74 69 6f |inating conditio| 00006e30 6e 20 66 6f 72 20 0a 20 20 20 20 3c 43 4f 44 45 |n for . <CODE| 00006e40 3e 64 6f 2f 72 65 70 65 61 74 20 3c 2f 43 4f 44 |>do/repeat </COD| 00006e50 45 3e 20 73 74 72 75 63 74 75 72 65 2e 0a 0a 3c |E> structure...<| 00006e60 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 76 61 6c 22 |DT><A NAME="val"| 00006e70 3e 3c 43 4f 44 45 3e 76 61 6c 3c 2f 43 4f 44 45 |><CODE>val</CODE| 00006e80 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e |></A>.<DD><CODE>| 00006e90 76 61 6c 28 73 29 20 3c 2f 43 4f 44 45 3e 20 43 |val(s) </CODE> C| 00006ea0 6f 6e 76 65 72 74 73 20 61 73 20 6d 61 6e 79 20 |onverts as many | 00006eb0 63 68 61 72 61 63 74 65 72 73 20 6f 66 20 74 68 |characters of th| 00006ec0 65 20 0a 20 20 20 20 20 20 73 74 72 69 6e 67 20 |e . string | 00006ed0 3c 43 4f 44 45 3e 73 20 3c 2f 43 4f 44 45 3e 20 |<CODE>s </CODE> | 00006ee0 74 6f 20 61 20 6e 75 6d 62 65 72 20 61 73 20 69 |to a number as i| 00006ef0 74 20 63 61 6e 2e 20 44 65 63 69 6d 61 6c 20 0a |t can. Decimal .| 00006f00 20 20 20 20 20 20 6f 72 20 68 65 78 61 64 65 63 | or hexadec| 00006f10 69 6d 61 6c 20 6e 75 6d 62 65 72 73 20 28 70 72 |imal numbers (pr| 00006f20 65 66 69 78 65 64 20 62 79 20 26 61 6d 70 3b 29 |efixed by &)| 00006f30 20 61 72 65 20 72 65 63 6f 67 6e 69 7a 65 64 2e | are recognized.| 00006f40 20 0a 20 20 20 20 20 20 4e 6f 74 65 20 74 68 61 | . Note tha| 00006f50 74 20 74 68 65 20 68 65 78 61 64 65 63 69 6d 61 |t the hexadecima| 00006f60 6c 20 64 69 67 69 74 73 20 3c 43 4f 44 45 3e 61 |l digits <CODE>a| 00006f70 2c 62 2c 63 2c 64 2c 65 2c 66 20 3c 2f 43 4f 44 |,b,c,d,e,f </COD| 00006f80 45 3e 0a 20 20 20 20 20 20 61 72 65 20 69 6e 20 |E>. are in | 00006f90 6c 6f 77 65 72 20 63 61 73 65 2e 20 52 65 61 6c |lower case. Real| 00006fa0 73 20 61 72 65 20 64 69 73 74 69 6e 67 75 69 73 |s are distinguis| 00006fb0 68 65 64 20 62 79 20 61 20 64 65 63 69 6d 61 6c |hed by a decimal| 00006fc0 20 0a 20 20 20 20 20 20 70 6f 69 6e 74 2e 0a 0a | . point...| 00006fd0 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 76 65 63 |<DT><A NAME="vec| 00006fe0 74 6f 72 22 3e 3c 43 4f 44 45 3e 76 65 63 74 6f |tor"><CODE>vecto| 00006ff0 72 3c 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 |r</CODE></A>.<DD| 00007000 3e 3c 43 4f 44 45 3e 76 65 63 74 6f 72 20 7b 65 |><CODE>vector {e| 00007010 78 70 72 31 3b 20 2e 2e 2e 20 65 78 70 72 6e 3b |xpr1; ... exprn;| 00007020 20 7d 20 3c 2f 43 4f 44 45 3e 20 72 65 74 75 72 | } </CODE> retur| 00007030 6e 73 20 61 20 6e 65 77 20 76 65 63 74 6f 72 0a |ns a new vector.| 00007040 20 20 20 20 77 69 74 68 20 63 6f 6d 70 6f 6e 65 | with compone| 00007050 6e 74 73 20 3c 43 4f 44 45 3e 65 78 70 72 31 20 |nts <CODE>expr1 | 00007060 2e 2e 2e 20 65 78 70 72 6e 20 3c 2f 43 4f 44 45 |... exprn </CODE| 00007070 3e 2e 0a 20 20 20 20 54 68 65 72 65 20 6d 75 73 |>.. There mus| 00007080 74 20 62 65 20 61 74 20 6c 65 61 73 74 20 6f 6e |t be at least on| 00007090 65 20 63 6f 6d 70 6f 6e 65 6e 74 2e 0a 0a 3c 44 |e component...<D| 000070a0 54 3e 3c 41 20 4e 41 4d 45 3d 22 77 69 6d 70 5f |T><A NAME="wimp_| 000070b0 63 6c 6f 73 65 64 6f 77 6e 22 3e 3c 43 4f 44 45 |closedown"><CODE| 000070c0 3e 77 69 6d 70 5f 63 6c 6f 73 65 64 6f 77 6e 3c |>wimp_closedown<| 000070d0 2f 43 4f 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c |/CODE></A>.<DD><| 000070e0 43 4f 44 45 3e 77 69 6d 70 5f 63 6c 6f 73 65 64 |CODE>wimp_closed| 000070f0 6f 77 6e 28 29 20 3c 2f 43 4f 44 45 3e 20 50 72 |own() </CODE> Pr| 00007100 6f 67 72 61 6d 73 20 72 75 6e 6e 69 6e 67 20 61 |ograms running a| 00007110 73 20 77 69 6d 70 20 0a 20 20 20 20 20 20 20 20 |s wimp . | 00007120 20 20 20 20 20 74 61 73 6b 73 20 6d 75 73 74 20 | tasks must | 00007130 75 73 65 20 74 68 69 73 20 66 75 6e 63 74 69 6f |use this functio| 00007140 6e 20 62 65 66 6f 72 65 20 74 65 72 6d 69 6e 61 |n before termina| 00007150 74 69 6e 67 2e 20 0a 20 20 20 20 20 20 20 20 20 |ting. . | 00007160 20 20 20 20 49 74 20 72 65 74 75 72 6e 73 20 3c | It returns <| 00007170 43 4f 44 45 3e 6e 69 6c 20 3c 2f 43 4f 44 45 3e |CODE>nil </CODE>| 00007180 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00007190 77 69 6d 70 5f 69 6e 69 74 22 3e 3c 43 4f 44 45 |wimp_init"><CODE| 000071a0 3e 77 69 6d 70 5f 69 6e 69 74 3c 2f 43 4f 44 45 |>wimp_init</CODE| 000071b0 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e |></A>.<DD><CODE>| 000071c0 77 69 6d 70 5f 69 6e 69 74 28 76 65 72 73 69 6f |wimp_init(versio| 000071d0 6e 2c 6e 61 6d 65 2c 6d 65 73 67 5f 6c 69 73 74 |n,name,mesg_list| 000071e0 29 20 3c 2f 43 4f 44 45 3e 20 72 65 67 69 73 74 |) </CODE> regist| 000071f0 65 72 73 0a 20 20 20 20 61 20 74 61 73 6b 20 77 |ers. a task w| 00007200 69 74 68 20 74 68 65 20 77 69 6e 64 6f 77 20 6d |ith the window m| 00007210 61 6e 61 67 65 72 2e 20 3c 43 4f 44 45 3e 76 65 |anager. <CODE>ve| 00007220 72 73 69 6f 6e 20 3c 2f 43 4f 44 45 3e 20 69 73 |rsion </CODE> is| 00007230 20 0a 20 20 20 20 31 30 30 20 74 69 6d 65 73 20 | . 100 times | 00007240 74 68 65 20 76 65 72 73 69 6f 6e 20 6e 75 6d 62 |the version numb| 00007250 65 72 20 6f 66 20 52 49 53 43 20 4f 53 20 62 65 |er of RISC OS be| 00007260 69 6e 67 20 75 73 65 64 2c 0a 20 20 20 20 3c 43 |ing used,. <C| 00007270 4f 44 45 3e 6e 61 6d 65 20 3c 2f 43 4f 44 45 3e |ODE>name </CODE>| 00007280 20 69 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 | is the name of | 00007290 74 68 65 20 77 69 6d 70 20 74 61 73 6b 2c 20 61 |the wimp task, a| 000072a0 6e 64 20 0a 20 20 20 20 3c 43 4f 44 45 3e 6d 65 |nd . <CODE>me| 000072b0 73 67 5f 6c 69 73 74 20 3c 2f 43 4f 44 45 3e 20 |sg_list </CODE> | 000072c0 69 73 20 61 20 62 75 66 66 65 72 2c 20 67 69 76 |is a buffer, giv| 000072d0 65 6e 20 61 73 20 61 20 73 74 72 69 6e 67 20 0a |en as a string .| 000072e0 20 20 20 20 6f 72 20 69 74 73 20 69 6e 74 65 67 | or its integ| 000072f0 65 72 20 61 64 64 72 65 73 73 2c 20 63 6f 6e 74 |er address, cont| 00007300 61 69 6e 69 6e 67 20 74 68 65 20 6d 65 73 73 61 |aining the messa| 00007310 67 65 73 2c 20 73 74 6f 72 65 64 20 0a 20 20 20 |ges, stored . | 00007320 20 61 73 20 77 6f 72 64 73 20 61 6e 64 20 74 65 | as words and te| 00007330 72 6d 69 6e 61 74 65 64 20 62 79 20 30 2c 20 77 |rminated by 0, w| 00007340 68 69 63 68 20 74 68 65 20 74 61 73 6b 20 77 69 |hich the task wi| 00007350 73 68 65 73 20 74 6f 20 0a 20 20 20 20 72 65 63 |shes to . rec| 00007360 65 69 76 65 2e 20 54 68 65 20 66 75 6e 63 74 69 |eive. The functi| 00007370 6f 6e 20 72 65 74 75 72 6e 73 20 74 68 65 20 74 |on returns the t| 00007380 61 73 6b 20 68 61 6e 64 6c 65 20 61 73 20 61 6e |ask handle as an| 00007390 20 0a 20 20 20 20 69 6e 74 65 67 65 72 2e 0a 0a | . integer...| 000073a0 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 77 69 6d |<DT><A NAME="wim| 000073b0 70 5f 72 65 70 6f 72 74 22 3e 3c 43 4f 44 45 3e |p_report"><CODE>| 000073c0 77 69 6d 70 5f 72 65 70 6f 72 74 3c 2f 43 4f 44 |wimp_report</COD| 000073d0 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 |E></A>.<DD><CODE| 000073e0 3e 77 69 6d 70 5f 72 65 70 6f 72 74 28 73 29 20 |>wimp_report(s) | 000073f0 3c 2f 43 4f 44 45 3e 20 20 64 69 73 70 6c 61 79 |</CODE> display| 00007400 73 20 73 74 72 69 6e 67 20 0a 20 20 20 20 20 3c |s string . <| 00007410 43 4f 44 45 3e 73 20 3c 2f 43 4f 44 45 3e 20 69 |CODE>s </CODE> i| 00007420 6e 20 61 20 64 69 61 6c 6f 67 75 65 20 62 6f 78 |n a dialogue box| 00007430 20 61 6e 64 20 72 65 74 75 72 6e 73 20 30 20 69 | and returns 0 i| 00007440 66 20 0a 20 20 20 20 20 6e 6f 20 6b 65 79 20 6f |f . no key o| 00007450 72 20 6d 6f 75 73 65 20 62 75 74 74 6f 6e 20 69 |r mouse button i| 00007460 73 20 63 6c 69 63 6b 65 64 2c 20 31 20 69 66 20 |s clicked, 1 if | 00007470 74 68 65 20 4f 4b 20 0a 20 20 20 20 20 62 75 74 |the OK . but| 00007480 74 6f 6e 20 69 73 20 73 65 6c 65 63 74 65 64 2c |ton is selected,| 00007490 20 61 6e 64 20 32 20 69 66 20 74 68 65 20 43 41 | and 2 if the CA| 000074a0 4e 43 45 4c 20 62 75 74 74 6f 6e 20 69 73 20 73 |NCEL button is s| 000074b0 65 6c 65 63 74 65 64 2e 0a 0a 3c 44 54 3e 3c 41 |elected...<DT><A| 000074c0 20 4e 41 4d 45 3d 22 77 68 69 6c 65 22 3e 3c 43 | NAME="while"><C| 000074d0 4f 44 45 3e 77 68 69 6c 65 3c 2f 43 4f 44 45 3e |ODE>while</CODE>| 000074e0 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 45 3e 77 |</A>.<DD><CODE>w| 000074f0 68 69 6c 65 20 63 20 3c 2f 43 4f 44 45 3e 20 74 |hile c </CODE> t| 00007500 65 72 6d 69 6e 61 74 69 6e 67 20 63 6f 6e 64 69 |erminating condi| 00007510 74 69 6f 6e 20 66 6f 72 20 0a 20 20 20 20 3c 43 |tion for . <C| 00007520 4f 44 45 3e 64 6f 2f 72 65 70 65 61 74 20 3c 2f |ODE>do/repeat </| 00007530 43 4f 44 45 3e 20 73 74 72 75 63 74 75 72 65 2e |CODE> structure.| 00007540 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 62 |..<DT><A NAME="b| 00007550 61 63 6b 71 75 6f 74 65 22 3e 3c 43 4f 44 45 3e |ackquote"><CODE>| 00007560 26 23 39 36 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |`</CODE></A>| 00007570 0a 3c 44 44 3e 3c 43 4f 44 45 3e 26 23 39 36 3b |.<DD><CODE>`| 00007580 28 78 29 20 3c 2f 43 4f 44 45 3e 20 52 65 74 75 |(x) </CODE> Retu| 00007590 72 6e 73 20 61 73 20 61 6e 20 69 6e 74 65 67 65 |rns as an intege| 000075a0 72 20 74 68 65 20 0a 20 20 20 20 20 20 63 6f 6e |r the . con| 000075b0 74 65 6e 74 73 20 6f 66 20 74 68 65 20 62 79 74 |tents of the byt| 000075c0 65 20 61 74 20 74 68 65 20 61 64 64 72 65 73 73 |e at the address| 000075d0 20 6f 72 20 73 74 72 69 6e 67 20 0a 20 20 20 20 | or string . | 000075e0 20 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 45 | <CODE>x </CODE| 000075f0 3e 2e 20 49 66 20 3c 43 4f 44 45 3e 73 20 3c 2f |>. If <CODE>s </| 00007600 43 4f 44 45 3e 20 69 73 20 61 20 73 74 72 69 6e |CODE> is a strin| 00007610 67 0a 20 20 20 20 20 20 3c 43 4f 44 45 3e 26 23 |g. <CODE>&#| 00007620 39 36 3b 28 73 29 20 3c 2f 43 4f 44 45 3e 20 69 |96;(s) </CODE> i| 00007630 73 20 74 68 65 20 73 61 6d 65 20 61 73 20 3c 43 |s the same as <C| 00007640 4f 44 45 3e 73 5b 30 5d 20 3c 2f 43 4f 44 45 3e |ODE>s[0] </CODE>| 00007650 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 3d 22 |...<DT><A NAME="| 00007660 62 61 63 6b 71 75 6f 74 65 32 22 3e 3c 43 4f 44 |backquote2"><COD| 00007670 45 3e 26 23 39 36 3b 26 23 39 36 3b 3c 2f 43 4f |E>``</CO| 00007680 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 00007690 45 3e 26 23 39 36 3b 26 23 39 36 3b 28 78 2c 63 |E>``(x,c| 000076a0 29 20 3c 2f 43 4f 44 45 3e 20 50 6c 61 63 65 20 |) </CODE> Place | 000076b0 62 79 74 65 20 3c 43 4f 44 45 3e 63 20 3c 2f 43 |byte <CODE>c </C| 000076c0 4f 44 45 3e 0a 20 20 20 20 20 20 20 61 74 20 61 |ODE>. at a| 000076d0 64 64 72 65 73 73 20 3c 43 4f 44 45 3e 78 20 3c |ddress <CODE>x <| 000076e0 2f 43 4f 44 45 3e 2c 20 61 6e 64 20 72 65 74 75 |/CODE>, and retu| 000076f0 72 6e 20 3c 43 4f 44 45 3e 63 20 3c 2f 43 4f 44 |rn <CODE>c </COD| 00007700 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 |E>...<DT><A NAME| 00007710 3d 22 70 6f 75 6e 64 22 3e 3c 43 4f 44 45 3e 26 |="pound"><CODE>&| 00007720 23 31 36 33 3b 3c 2f 43 4f 44 45 3e 3c 2f 41 3e |#163;</CODE></A>| 00007730 0a 3c 44 44 3e 3c 43 4f 44 45 3e 26 23 31 36 33 |.<DD><CODE>£| 00007740 3b 28 78 29 20 3c 2f 43 4f 44 45 3e 20 52 65 74 |;(x) </CODE> Ret| 00007750 75 72 6e 73 20 61 73 20 61 6e 20 69 6e 74 65 67 |urns as an integ| 00007760 65 72 20 74 68 65 20 0a 20 20 20 20 20 20 63 6f |er the . co| 00007770 6e 74 65 6e 74 73 20 6f 66 20 74 68 65 20 77 6f |ntents of the wo| 00007780 72 64 20 61 74 20 74 68 65 20 61 64 64 72 65 73 |rd at the addres| 00007790 73 20 6f 72 20 73 74 72 69 6e 67 20 0a 20 20 20 |s or string . | 000077a0 20 20 20 3c 43 4f 44 45 3e 78 20 3c 2f 43 4f 44 | <CODE>x </COD| 000077b0 45 3e 2e 0a 0a 3c 44 54 3e 3c 41 20 4e 41 4d 45 |E>...<DT><A NAME| 000077c0 3d 22 70 6f 75 6e 64 32 22 3e 3c 43 4f 44 45 3e |="pound2"><CODE>| 000077d0 26 23 31 36 33 3b 26 23 31 36 33 3b 3c 2f 43 4f |££</CO| 000077e0 44 45 3e 3c 2f 41 3e 0a 3c 44 44 3e 3c 43 4f 44 |DE></A>.<DD><COD| 000077f0 45 3e 26 23 31 36 33 3b 26 23 31 36 33 3b 28 78 |E>££(x| 00007800 2c 6e 29 20 3c 2f 43 4f 44 45 3e 20 50 6c 61 63 |,n) </CODE> Plac| 00007810 65 20 69 6e 74 65 67 65 72 20 3c 43 4f 44 45 3e |e integer <CODE>| 00007820 6e 20 3c 2f 43 4f 44 45 3e 0a 20 20 20 20 20 20 |n </CODE>. | 00007830 20 61 74 20 61 64 64 72 65 73 73 20 3c 43 4f 44 | at address <COD| 00007840 45 3e 78 20 3c 2f 43 4f 44 45 3e 2c 20 61 6e 64 |E>x </CODE>, and| 00007850 20 72 65 74 75 72 6e 20 3c 43 4f 44 45 3e 6e 20 | return <CODE>n | 00007860 3c 2f 43 4f 44 45 3e 2e 0a 3c 2f 44 4c 3e 0a 3c |</CODE>..</DL>.<| 00007870 48 52 3e 0a 0a |HR>..| 00007875