For Programmers: Free Programming Magazines  


Home > Archive > Prolog > January 2006 > hey guys i m lost in trying to do the following.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author hey guys i m lost in trying to do the following.
Srithar

2006-01-10, 4:10 am

i m reading words from the user, so i read one by one

i need to split the word and insert a space if a special condition met.
if i see vowel, consonent, vowel, then i insert a space.

analog --> ana log

i dunno hw do i go about doing it....i tried get(X)...didnt get it
working....
then i tried read(X)...got stuck again....

if anyone can help me out that would be really nice....thanks...i spent
hrs into this....

Bart Demoen

2006-01-10, 4:10 am

Srithar wrote:
> i m reading words from the user, so i read one by one
>
> i need to split the word and insert a space if a special condition met.
> if i see vowel, consonent, vowel, then i insert a space.
>
> analog --> ana log
>
> i dunno hw do i go about doing it....i tried get(X)...didnt get it
> working....
> then i tried read(X)...got stuck again....
>
> if anyone can help me out that would be really nice....thanks...i spent
> hrs into this....
>


Depending on the Prolog system you are using ... readln/1 might help you
in the reading.

Come back to this newsgroup with code: it is the time when people feel
they have to do something for the happiness of others, so you might be
lucky and get help, but showing your good will (and code) might help.

Cheers

Bart Demoen
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com