Hi, guy how do I generate a code to print all combinations of a 4 digit code betwwen 1 and 13

U can view my code snippet to find the solution of ur question.The title of the code is :Permutations Of A Number Or String .This code is very easy to understand however it is written in c rather in c++.I think u can understand the logic atleast.This program is generalized and doesn't restrict the user for any any specific length entry or so.Just click the following Url :http://www.daniweb.com/code/member22858.html .