int main(array<System::String ^> ^args)
{
int a[]={1,2};
recurse(a,2);
int j;
cin>>j;
}
My logic is like this:
first digit is kept same, then the next n digits are sent.those n digits are permuted and returned.this is repeated till all permutations are obtained.