s-news
[Top] [All Lists]

From C+ to S+

To: <s-news@wubios.wustl.edu>
Subject: From C+ to S+
From: "Ray Haraf" <rayharaf@home.com>
Date: Sat, 24 Nov 2001 09:51:54 -0500
Hello everyone,
 
Can you help with translating the following C+ codes into S+ codes. I do not have C compiler.
Input: X ={x1, x2, ....,xN}. Let xi.d denotes category
Output: L
CODES TO TRANSLATE
 
L = empty;
for (i = 1; i<N; i++)
    if (xi <> x(i+1)){
                l = (x = [xi+x(i+1)]/2);
                add l to L;
    }
return L;
 
Thanks for care,
 
Ray
 
 
<Prev in Thread] Current Thread [Next in Thread>
  • From C+ to S+, Ray Haraf <=