🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #2141

Re: Big Endian e Little Endian

#2141
From: Arone
Date: Sat, 18 Oct 2003 12:11
36 lines
2049 bytes
beh, hai svariati modi dire...

a) trasformi il numero in una stringa, la inverti e la ritrasformi in
un numero

b) lavori sulle potenze di dieci e inizi a "catturarti" le singole
cifre:
325%10=5 ed hai la prima cifra
(325/10)%10=2 ed hai la seconda
(325/100)%10=3 ed hai la terza

i=3
i=i+2*10
i=i+5*100
i=523

per generalizzare tutto ti bastano un for e qualche variabile
d'appoggio chiaramente...

spero sia questo tu intenda per big endian o little endian, poich�
l'unico significato che conosco io � quello dei registri nei
processori, ma sarebbe un attimo diverso, anche se il procedimento �
pi� o meso simile...

On Sat, 18 Oct 2003 08:10:37 GMT, Piero <ghale@no_spam_libero.it>
wrote:

>Ciao ragazzi,
>potete per cortesia aiutarmi nella conversione da Big Endian in Little 
>Endian?
>
>Avrei bisogno di qualche suggerimento per scrivere un piccolo programma 
>in Visual Basic che mi aiuti a convertire in un verso e nell'altro degli 
>interi.
>
>Potete aiutarmi, per favore?
Technical Details
Message-ID: <f5b2pvsqlgdsjlfo8moq3k0c0rr8in9n41@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
References: <1A6kb.44952$vO5.1648143@twister1.libero.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,19012c8c7cdbf26a
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2003-10-18 05:11:55 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
From: Arone <faggy-soft@TOGLIMIlibero.it>
Newsgroups: free.it.visual-basic
Subject: Re: Big Endian e Little Endian
Reply-To: faggy-soft@TOGLIMIlibero.it
Message-ID: <f5b2pvsqlgdsjlfo8moq3k0c0rr8in9n41@4ax.com>
References: <1A6kb.44952$vO5.1648143@twister1.libero.it>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 37
Date: Sat, 18 Oct 2003 12:11:54 GMT
NNTP-Posting-Host: 151.42.118.246
X-Complaints-To: abuse@net24.it
X-Trace: twister2.libero.it 1066479114 151.42.118.246 (Sat, 18 Oct 2003 14:11:54 MET DST)
NNTP-Posting-Date: Sat, 18 Oct 2003 14:11:54 MET DST
Organization: [Infostrada]