Thanks for all of you guys, sorry I can not input Chinese right now, I have no
time to check all the code now, after I check the code I will give you the FEN.
BTW, I have write some code to implement this function, I paste it here, may be
we can dicuss it.
var
Form1: TForm1;
strtmp: string;
implementation
{$R *.dfm}
function TForm1.Sub(str: String
N: integer): string;
var
strl: string;
i: integer;
begin
strl:='';
if N = 0 then
begin
for i:= 1 to length(strtmp) do
if strtmp<>'&' then
strl:= strl+strtmp;
Memo1.Lines.Add(strl);
end
else begin
strtmp[N] := str[N];
Sub(str, N-1);
strtmp[N] := '&';
Sub(str, N-1);
end;
end;
procedure TForm1.btnPrintClick(Sender: TObject);
var
strText: string;
begin
strtmp := StringOfChar(#0, 50);
strText:= edtString.Text;
Sub(strText, length(strText));
end;