, .
. . , ࢭ , . , 볭 , .
:
( ); . ;
, .
.
. .
. , , 볭 . 쳭 (). , . , . .
, .
Pascal. .
, - ( ).
(, ), (, Ⳮ), , . .
, , . Pascal , .
, ASCII ( ). , 볭 #13=^ #10=^J , ( #26=^Z). , , .
. , . , . , , . .
|
|
.
, : .
Pascal . ﳭ : Input Output.
, - , Text:
Input, Output . - , . ( ) , () .
:
Var Ft: text;
() :
Read(Ft, x);
Read(Ft, x1, , xn);
Ft , , . Ft = Input, .
Read Readln . Ⳮ ().
Read(Input, x) Read(x); Read(Input, x1, , xn) Read(x1, , xn). Read(Ft,x1, , xn) : Read(Ft,x1); Read(Ft,x2); ; Read(Ft,xn); Readln(Ft,x1, , xn) : Read(Ft,x1); Read(Ft,x2); ; Readln(Ft,xn), x1, , xn .
:
Write(Ft, x); Writeln(Ft, x);
Write(x); Writeln(x);
Write(Ft, x1, , xn) Write(Ft, y1); ; Write(Ft, yn).
Writeln(Ft, x1, , xn) Write(Ft, y1); ; Writeln(Ft, yn), Ft text.
Ft º Output, .
Writeln(Ft) { Ft}
Writeln { Output}
. , , ; , , .
, (. . , , ) ().
Ⳮ . , , () (#9), (#13#10).
, ﳭ , .
, c1, c2:
VAR c1, c2: Char. Read(c1, c2) ࢭ .
c1 | c2 | |
¿ | '' | '' |
¿¿ | '' | #13 |
¿ | #13 | #10 |
ѳ ¿ <Enter>.
. ( , ). , ᭒ . #13, , #13 , .
|
|
? , :
VAR by: Byte;
boo: Boolean ABSOLUTE by;
{ boo
by by}
...
Read(by);
{ 0 = False, 1 = True
0 1
}
Read <Enter>. . , , x1 Integer, Char (, ), -. : I/O error XX, XX . .
.
VAR I: Real;
J: Integer:
K: Char;
BEGIN
Read(I, J, K);
: 235.98 100 G
, , 'G', :
I:= 235.98; J:= 100; K:= ' ';
: G 235.98 100
, I Real Char.
, Read, , ᳭ .
, A, B Integer, C, D Real. :
Read(A, B); Read(C, D);
: 1875 34 2.62 1.54E+01 <Enter>. <Enter>.
Readln Read, , . Readln(fv, x1, , xn) Read(fv, x1); Read(fv, x2); ; Readln(fv, xn).
, .
Input , , . 쳭 , , . , . .
Write , , , . , () . .
Write(y1, , yn); Writeln(y1, , yn);
y1, , yn :
( )
:F ( )
:F:d ( !).
, F, d . , ( ). F , (, ). d , F . . : , ࢭ, Char, String, Boolean. , . .
|
|
ѳ .
VAR c: Char;
c:='a';
Write(c);Writeln; { Þ a}
Write(c, c, c); { Þ aaa}
: F, , ( ), F . F , F.
Write(c:3);
Writeln(c:3, c:4, c:5);
{: ||a||a
A