matek2 volt Re: matek
Erdos Zoltan
silverst at t-online.hu
Tue Oct 30 21:49:20 CET 2007
Fuzesi Arnold wrote:
> Ez bezzeg látom megy mindenkinek versenyszinten.. :)
> De ha kicsit bonyolultabb kerdes van akkor meg mint szar a fűben akkora a
> csend. :)
>
>
>
> A.
>
Ha annyira akarod, legyen egy kicsit komolyabb kerdes:
Ha vki ki tudja bogyozni,hogy miert ezek az ertekek, lecci homalyositson
fol...
esetleg egy jo kibogozo algoritmussal is :-)
--------
Some numbers are represented in a form called a variablelength quantity.
These numbers are represented 7 bits per byte, most significant bits
first. All bytes except the last have bit 7 set, and the last byte has
bit 7 clear. If the number is between 0 and 127, it is thus
represented exactly as one byte.
Here are some examples of numbers represented as variable-length quantities:
Number (hex) Representation (hex)
00000000 00
00000040 40
0000007F 7F
00000080 81 00
00002000 C0 00
00003FFF FF 7F
00004000 81 80 00
00100000 C0 80 00
001FFFFF FF FF 7F
00200000 81 80 80 00
08000000 C0 80 80 00
0FFFFFFF FF FF FF 7F
The largest number which is allowed is 0FFFFFFF so that the variable-
length representation must fit in 32 bits in a routine to write
variable-length numbers.
---------
Z.
More information about the Elektro
mailing list