SIR I AM NOT ABLE TO STORE SUBSET LIKE AB,AC,ABC AT ONE PLACE PLEASE HELP

HERE IS THE CODE WHAT I HAVE WROTE

@rupeshjha909 the problem is with the way you are storing the subsets in a vector. It is wrong.
You can use something like vector in which you can easily store the all results.

can u help in storing i am not getting idea how to do

@rupeshjha909 for that you can use a make string for the current subset and push that string into something like vector and atlast print it.
It will be better to understand through code, you have a look at this https://ide.codingblocks.com/s/230240 i have done the required changes in the code and added comments.

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like