Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: HJoshy
  • Content: Threads
  • Order by date
  1. HJoshy

    XPCE Prolog command causing error in VS2008 C++

    Upon loading into a C++ program a Prolog program that contains the command 'send' (xpce graphics), I get error messages of type: Syntax Error: Operator Expected. Here is an example command that causes the errors: send( Dialog, append, button(continue, message(@prolog...
  2. HJoshy

    Factorial in Prolog and C++

    I would like to work out a number's factorial. My factorial rule is in a Prolog file and I am connecting it to a C++ code. Can someone tell me what is wrong with my C++ interface please? % factorial.pl factorial( 1, 1 ):- !. factorial( X, Fac ):- X > 1...
  3. HJoshy

    Avoiding plld in VS2008

    Hello, I have a large Prolog program with lots of predicates. I need to connect to this Prolog code from C++ (VS2008) to obtain certain query results. So I am NOT trying to embed Prolog in C++ as a logical engine, but for my C++ program to connect to my Prolog code and obtain query...
  4. HJoshy

    Prolog foreign-interfacing with C++

    I have a simple Prolog source code (Hanoi.pl) containing the code for solving the Hanoi Towers puzzle: hanoi( N ):- move( N, left, middle, right ). move( 0, _, _, _ ):- !. move( N, A, B, C ):- M is N-1, move( M, A, C, B ), inform( A, B ), move( M, C, B, A ). inform( X...

Part and Inventory Search

Back
Top