comp.lang.ada
 help / color / mirror / Atom feed
* permutation of strings
@ 2014-10-07  5:23 Stribor40
  2014-10-07  5:38 ` mockturtle
  0 siblings, 1 reply; 3+ messages in thread
From: Stribor40 @ 2014-10-07  5:23 UTC (permalink / raw)


I have created this code using some online tutorials and some examples that i tried to learn... i havent been able to find whats wrong with my code....i am guessing what my variable j is somehow getting reset during the recursive calls...
i have been trying to retrace recursive calls by writing each call on the on the paper but i get lost trying to track it down......

my code spits out numbers...123 123 123 123 123 123 instead of 123 132 213 231 321 312 so i was hoping if someone can take a look and suggest how to fix this....

i pasted the code here it is ready to be compiled and there are no errors when it is compiled....http://pastebin.com/rDF46RbR



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-07 11:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-07  5:23 permutation of strings Stribor40
2014-10-07  5:38 ` mockturtle
2014-10-07 11:22   ` Brian Drummond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox