From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.251.135 with SMTP id zk7mr968944obc.14.1412659431661; Mon, 06 Oct 2014 22:23:51 -0700 (PDT) X-Received: by 10.182.28.102 with SMTP id a6mr3441obh.17.1412659431468; Mon, 06 Oct 2014 22:23:51 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!uq10no5364919igb.0!news-out.google.com!bc9ni17237igb.0!nntp.google.com!h18no2433115igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 6 Oct 2014 22:23:51 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.36.114.177; posting-account=Lb5doAoAAAAWHET3z2_nBVbFSXaZQG1V NNTP-Posting-Host: 24.36.114.177 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: permutation of strings From: Stribor40 Injection-Date: Tue, 07 Oct 2014 05:23:51 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:189471 Date: 2014-10-06T22:23:51-07:00 List-Id: 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