Using goto LABEL; is not a recommended programming practice. THe same applies to system ("PAUSE") calls. Calling OS dependent functions is not good programming practice.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
A simple program to calculate permutations of a string using recursion, I have used a malloc string of size 100 , you can change it to whatever value you want.
The author is currently working at Microsoft,any questions can be directed to [email]raghu_tillu@hotmail.com[/email]
It takes very long time to complete the task,may be because of the spaces,1 hour is also not sufficient for completion of 14 char string.
challarao
Junior Poster in Training
56 posts since Aug 2010
Reputation Points: 10
Solved Threads: 1
feel free to edit or modify the code, its been a long time since I have played around with this code :)
Then you should have played with it before posting. goto and gets() are extremely poor techniques in coding. And for a professional? At M$? No wonder updates are needed continuously...
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
And where do you state you were in HS? You're the one that mentioned "the author is currently working at Microsoft" with no timeline, explanation, etc. to let us know you wrote it years before.
Who's the moron now? Maybe you should have left a 5-year-old thread stay buried.
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944