Results 1 to 4 of 4

Thread: [Prolog] How to find a word in a string

Threaded View

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved [Prolog] How to find a word in a string

    Given an input in a string. Something like:

    Code:
    eliza :-
    	write('Hello'),nl,
    	read(sInput).

    How can I find out if a certian word is in the sInput variable. So I can give feedback?



    ØØ
    Last edited by NoteMe; Feb 28th, 2005 at 11:37 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width