Hello,

--- I wrote ---
>AFAIK Prolog and Borland's "Turbo-Pascal" were combined years ago (by a
>software company in/near Munich,Germany)
Now I remember : It was even Borland itself with a MS-DOS version of "Turbo
Prolog" (the compiled .obj files could be linked to Turbo-Pascal
applications or vice versa).
Perhaps Inprise.com/Borland.com still offers binary file support (of
PROLOG's solution algorithms) out of their archive for good
C(++)Builder or JBuilder customers (like Sistem Analisti perhaps) ?

----- [EMAIL PROTECTED] wrote -----
To: "JDJList" <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 5:55 AM
Subject: [jdjlist] RE: different algorithm

>...

> public static boolean different(int a,int b,int c,int
> d,int e,int f,int g,int h) {
> if (a==b || a==c || a==d || a==e || a==f || a==g ||
> a==h)
> return false;
> if (b==c || b==d || b==e || b==f || b==g || b==h)
> return false;
> if (c==d || c==e || c==f || c==g || c==h)
> return false;
> if (d==e || d==f || d==g || d==h)
> return false;
> if (e==f || e==g || e==h)
> return false;
> if (f==g || f==h)
> return false;
> if (g==h)
> return false;
> return true;
> } /* to control wheather all inputs are different or
> not */

If Sistem Analisti's program is intended for (High-)school or University ,
the teacher/professor might expect 2 nested for (;;) {} loops on an array
from
a[0] to a[7]  (for the variables a to h ) here.
Slower in execution , but a bit more flexible regarding the different letter
riddles that exist.

sincerely,
U. Penski
[EMAIL PROTECTED]
http://uuhome.de/penski




____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to