Permutations: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4,169:
 
<syntaxhighlight lang="futurebasic">
 
begin globals
Short w( 4 ), i = -1
end globals
 
void local fn perm( k as Short)
static Short w( 4 ), i = -1
Short j
i ++ : w( k ) = i
Line 4,198 ⟶ 4,194:
void local fn perm( w as CFStringRef )
Short a, b, c, d
CFStringRef s
for a = 0 to 3 : for b = 0 to 3 : for c = 0 to 3 : for d = 0 to 3
if a != b and a != c and a != d and b != c and b != d and c != d
60

edits