Home > Back-end >  According to as L get a digital, may be 7 digits?
According to as L get a digital, may be 7 digits?

Time:09-21

This problem has to do with mathematics and program, indentation, get as L, warrior, please help me put as L (jiao) calculated for a period of pure digital string, is May 7 digits,
Tell me, algorithm,

CodePudding user response:

What do you mean? 'as L' into '1234567' this? Reversible?

CodePudding user response:

Is there a conversion tool? Kind of?

CodePudding user response:

Characters' as L 'into' 1234567 '?

CodePudding user response:

Too many algorithm, given a clear, given a cipher, theoretically has an infinite variety of algorithm implementation clear & lt; -> Cipher,

CodePudding user response:

Is ah, directly calculate the Chinese character encoding is the most simple, such as a Chinese character by two bytes, aInt:=ByteHi * 256 + ByteLow; According to some algorithm is assigned to the put this aInt seven characters of go,

CodePudding user response:

Procedure TForm1. Button1Click (Sender: TObject);
Var
S: a string;
I, j: integer;
PC: pansichar;

The begin
S:='?? L ';
I:=pinteger (@ [1] (s)) ^;
Caption:=inttostr (I);//5016267

{
PC:=pansichar (@ I);
Caption:=PC;
}
end;

CodePudding user response:

Post the code on the
S:='?? L ';
It should be: s:='as L'
  • Related