Calling to Prolog from C
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I send you three files:
Makefile.
Carlos.cc---> this is a file which calls to Prolog file.
call_operations_Suma.pl--> This file contains the Prolog predicate
which are called by Carlos.cc.
This little program simulates a bank account, and for it puts to 0 the
account, then deposit 5 and finally shows the money that exists in the
account.
The problem is in the final result. Because the out is wrong.
Can you help me???
Cheers.
_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog
files.tar
(application/x-tar, 10 KB) - not displayed