.


:




:

































 

 

 

 


. 1. Visual Prolog (Project | New Project), Application Expert ( )




1. Visual Prolog (Project | New Project), Application Expert ( ).

2. (Primer) , (, D:\VP\Primer)

 

.4. Application Expert

 

Target Create (. 5):


.5. Target Application Expert

 

3. Compiler Options (Options | Project | Compiler Options), Warnings (.6):

.6.

OK.

4. Primer.pro ( Edit)

 

.7.


.pro PREDICATES, GOAL, CLAUSES. , :

DOMAINS

=string

PREDICATES

(,)

()

()

(, )

CLAUSES

("","").

("","").

("","").

("","").

("","").

("","").

("").

("").

("").

("").

("").

("").

("").

("").

(X,Z):-(X,Y), (Y,Z),

(X).

GOAL

(X,""),write(X).

5. . (Project | Run, <F9>, <R>). :

 

.8.





:


: 2015-09-20; !; : 774 |


:

:

, , . , .
==> ...

1756 - | 1600 -


© 2015-2024 lektsii.org - -

: 0.01 .