cout <<"--------------GenComb---------------"<<endl;
for (int i=0; i<n; i++)
a[i]=i+1;
for (int j=0; j<k; j++)
{
cout<<a[j]<<"";
}
cout<<endl;
while (n>k)
{
GenComb (a, n, k);
for (int j=0; j<k; j++)
{
cout <<a[j]<<"";
}
cout<<endl;
}
return 0;
}
3456
3456
3456
3456
3456
3456
3456
3456
3456
3456
3456
3456