Closed Thread
Results 1 to 4 of 4

Thread: PROLOG Question

  1. #1
    bukbukintegra Guest

    PROLOG Question

    hello, i'm a beginning ICS student currently in the process of doing some homework...

    i was wondering if this was a correct prolog statment for this english sentence...

    If Fido is yellow Lab, then Fido is a dog.

    dog(fido) :- yellow_lab(fido).

  2. CODECALL Circuit advertisement

     
  3. #2
    kromagnon is offline Learning Programmer
    Join Date
    Jun 2006
    Posts
    50
    Rep Power
    0
    looks good to me
    <!-- comment comment comment --></

  4. #3
    bukbukintegra Guest
    thanks alot!!! i wanted to make sure...

  5. #4
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    Looks good and I'm guessing you are learning about classes?

    Parent Class: DOG
    Inherit Class (from DOG): Yellow Lab

    Looks good.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Prolog newbie question
    By misao in forum General Programming
    Replies: 0
    Last Post: 04-24-2011, 06:52 AM
  2. Help with prolog question....!!!
    By thedevil in forum General Programming
    Replies: 3
    Last Post: 09-30-2010, 08:58 AM
  3. Prolog
    By Apprentice123 in forum General Programming
    Replies: 2
    Last Post: 08-30-2010, 01:45 PM
  4. Prolog Question
    By Nacre in forum General Programming
    Replies: 6
    Last Post: 11-20-2008, 01:03 PM
  5. Prolog question: table
    By alx9 in forum General Programming
    Replies: 0
    Last Post: 06-08-2008, 09:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts