The Dink Network

Reply to Re: You are right Simeon [with text]

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 19th 2002, 02:57 AM
stonegiant.gif
: it is easy to make yer own power function, like:

: procedure superpower (base,exponent : integer;

: power : real) ;

: begin

: power := 1;

: repeat

: power := power * base;

: exponent := exponent - 1;

: until exponent = 0;

: end;

: i think this is right... have not scripted in pascal since april or so but i tried.

*tullisti has a heart attack at seeing pascal/delphi code again*

*grin* it's a pet hate, mainly because high schools insist on teaching it, when there are HEAPS of other languages out there which would teach better coding structure, object orientation, and would enerally work better