例如:SYNC

解决方案 »

  1.   

    function p(s: String): String;
    var
      i: Integer;
    begin
      Result := '';
      for i:=1 to Length(s) do Result := Result + IntToStr(s[i]) + ' ';
    end;
      

  2.   

    function p(s: String): String;
    var
      i: Integer;
    begin
      Result := '';
      for i:=1 to Length(s) do Result := Result + IntToStr(Ord(s[i])) + ' ';
    end;
      

  3.   

    SYNC是控控制字符,对应10进制22,可以查表:
    http://wwd.8u8.com/exam/asciihlp.zip