la question est dans le titre ... Je voudrais realiser un algorithme qui le fasse ...
Si quelqu'un connait des bibliotheques ?
Comment par exemple convertir 0001(hex) en string ASCII(byte) ?
la question est dans le titre ... Je voudrais realiser un algorithme qui le fasse ...
Si quelqu'un connait des bibliotheques ?
Comment par exemple convertir 0001(hex) en string ASCII(byte) ?
Je ne sais pas si vous souhaitez un code du type
si non essayez d'être un peu plus précis sur votre requête
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 function HEXA( i : integer ) : string; var j : integer; out : string; begin out:=''; if i <0 then out:='???' else if i=0 then out='0' else while i > 0 do begin j:= i mod $F; case j of 0..9 : out:=char(48+j) + out else out:= char ( 55 + j) + out end; i:= i >> 4; end ; HEXA:=out; end;
Partager