.


:




:

































 

 

 

 


?




3.5.3 ?

3.5.4 Append? .

3.5.5 Append ' .

3.5.6 " Append ' .

3.5.7 delete :

) ;

) .

 

 

4 4

-.

4.1

:

- - ;

- , .

4.2

4.2.1 , . , 쳺, - .

ǒ .

include "< >.inc". inc file, file. , (.exe), include "< >.inc". , .

1

. .

domains

file = a

Predicates

nondeterm go

Goal

openread (a, H.d), readdevice (a), go, closefile(a).

Clauses

go: eof(a);

readint(M), write(M),nl,!, go.

:

1) ³ .

2) .

3) . .

4) .

5) .

6) 䳿 3-5.

 

, : , , , .

2

. .

domains

file = a

Predicates

nondeterm go

Goal

disk("D:\\ira\\program\\prolog\\v"),openwrite (a,A.d), writedevice (a), go, closefile(a).

Clauses

go: readint(M), write(M),nl,!,go.

go.

:

1) ³ .

2) .

3) .

4) . , .

5) .

6) .

ʳ ESC. readint go.





:


: 2015-10-01; !; : 308 |


:

:

,
==> ...

1579 - | 1566 -


© 2015-2024 lektsii.org - -

: 0.007 .