User:Eriksiers/Permute a string: Difference between revisions

m
updated lang tag
m (VB note)
m (updated lang tag)
 
Line 5:
Note also that the sub works almost unchanged in [[Visual Basic]] (if you change the output method, e.g. <code>'''PRINT'''</code>-><code>'''PRINT #'''</code>) and [[PowerBASIC]]. Probably other [[BASIC]]s too, but I haven't checked.
 
<langsyntaxhighlight lang="qbasic">DECLARE SUB Permute (unchanged$, volatile$)
 
'Permute() must be called with an empty string as the first arg,
Line 22:
END IF
END SUB
</syntaxhighlight>
</lang>
1,150

edits