2 questions (big numbers + HD vs DD)
Michalis Kabrianis
kabrianis at hellug.gr
Tue Nov 16 14:47:07 EET 1999
On 16-Nov-99 Mike wrote:
> Hello paides
>
> 1)Estw oti grafoume ena prog pou exei ws output enan
> ari8mo (p.x. skefteite tou dinoume enan akeraio kai
> epistrefei ton epomeno). To prog to grafoume se polles
> glwsses (ada, c, pascal, basic klp klp). Estw twra oti
> dokimazoume na broume ton megalitero pou mporei na dextei
> wste na mhn bgalei overflow.
> Aytos o ari8mos eksartatai ap'thn glwssa poy
> xrisimopoiisame? Diladi 8a einai diaforetikos gia to ka8e
> prog??
Nai peripou.
Stin C tha prepei na dilwseis ti tha einai o arithmos pou tha sou bgalei (p.x.
int) ara molis ftasei sta oria tou int tha sou xtypisei.
To idio kai stin C++.
Stin lisp, (xwris na kserw pws xrisimopoiei ta noumera) kai stin perl, den tha
sou xtypisei ston idio arithmo alla se kapoio megalytero (an xtypisei diladi)
giati den dilwneis pouthena ti einai ayto pou tha sou bgalei.
Se alles glwsses den kserw.
> (an nai... mporeite na mou peite ti einai ayto pou
> anagkazei tous dimiourgous mias glwssas na ftasoun
> ews enan ari8mo enw kapoia alli glwssa na
> xeirizetai megaliterous?)
Kamia glwssa den xeirizetai megalyterous apo oti mia alli xamiloterou epipedou
*praktika*. An skefteis as poume oti i perl einai grammeni se C, tha katalabeis
oti kanei ena trick gia na ftasei se megalytera noumera to opoio tha mporouses
na kaneis ki esy (thewritika panta). Ara oute i C exei problima na ftasei, se
megalytera noumera. Apla to paradeigma pou xrisimopoiises fernei tetoious
periorismous (ektos an grapseis ena allo tropo xeirismou arithmwn stin C,
pragma apolyta apodekto). Telos, oles oi glwsses milane assembly kata bathos,
ara exoun akribws tous idious periorismous se toso apla themata (diladi xrisi
arithmwn) kai to mono pou tous leipei (i tous perissevei, opws to deis) einai
mia routina xeirismou.
An kanw lathos as me diorthwsei kapoios parakalw.
> 2)Shmera meta apo polyyyyyyyyyyyyyyyyyyyy kairo phga na
> agorasw disketes (na nai kala to CD-RW mou). Epeidh ksexnaw
> eykola 8ymatai kaneis ti diafora exoun oi disketes HD kai
> DD? Entelws pliroforiaka.
1.44Mb kai 720Kb antistoixa.
> Thnx
> ========
> MIKE
> ========
>
Michalis Kabrianis
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list