Δημοσιεύτηκε: 16 Μαρ 2009, 16:45
από ftso
linuxman έγραψε:Ctrl+D και όχι exit :mrgreen:

ή quit() το ίδιο κάνει...

Όσοι γράφουν prolog (γλώσσα τεχνητής νοημοσύνης) και έχουν εγκατεστημένο τον swi-prolog interpreter...

Εκτελούμε:
Κώδικας: Επιλογή όλων
swipl

και ρωτάμε να μας πει ποιος είναι ο X...γράφοντας X. και πατώντας Enter...
Κώδικας: Επιλογή όλων

:~$ swipl
Welcome to SWI-Prolog (Multi-threaded, Version 5.6.47)
Copyright (c) 1990-2007 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.

For help, use ?- help(Topic). or ?- apropos(Word).

?- X.
% ... 1,000,000 ............ 10,000,000 years later
%
% >> 42 << (last release gives the question)
?-
Action (h for help) ? exit


...με CTRL+C και μετά e το κλείνουμε...