Upgrade sistema (solo info preliminari)
andrea gelmini
andrea.gelmini a lugbs.linux.it
Ven 9 Feb 2001 15:04:34 UTC
On Fri, Feb 09, 2001 at 02:53:52PM +0100, Enrico Colombini wrote:
> Ehi, un momento... questo e' barare!
> Ho letto con piu' attenzione il programma in INTERCAL e mi sembra
> assolutamente evidente che non e' un "hello word": legge degli unsigned, li
> tratta come signed, e stampa il loro valore assoluto.
intendevo dire, con hello world, che fosse il tipico listato di
esempio, non che facesse quello... cito cosa fa:
Shown below is a relatively simple INTERCAL program which will read in 32-bit
unsigned integers, treat them as signed, 2's-complement numbers, and print out
their absolute values. The program exits if the absolute value is zero. Note
in particular the inversion routine (statements 6 through 14), which could
be greatly simplified if the subroutine library (see section 5) were used.
ciao,
andrea
n.b.: inoltre volevo vedere se qualcuno l'avrebbe effettivamente guardato.
Maggiori informazioni sulla lista
Lug
|