pascalabcnet/TestSuite/CompilationSamples/Char2.pas

13 lines
367 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Стандартные функции OrdUnicode ChrUnicode
var
i: integer;
c: char;
begin
c := 'Д';
i := OrdUnicode(c);
writelnFormat('Код символа {0} в кодировке Unicode равен {1}',c,i);
i := 1046;
c := ChrUnicode(i);
writelnFormat('Символ с кодом {0} в кодировке Unicode - это {1}',i,c);
end.