It would really help if you were to clearly state your problem and pay attention to some of the answers given you instead of spamming.
http://www.cplusplus.com/forum/general/43881/
I have already shown you, very clearly, how to simply
count through every five digit number and
check to see if the digits add to 33. Incidentals about how the numbers are stored in your vectors are minor details that you should be able to figure out yourself.
I could post my code so far, but I don't need answers, I need understanding. So any help and examples would be appreciated. |
Understanding starts with looking through what you have been given. What I have done so far is an elementary algorithm that you ought to understand if you want to get through things like
next_permutation() and the like.
Why are you determined to do it the hard way?
Why do your questions and specifics keep changing?
The reason no one else has helped is likely because the help you have received so far is both elementary and sufficient. If I (or anyone else) has completely misunderstood something, that is something, but I'm not sure you even understand what you want. Do you want a combination or a permutation? Can the same digit appear more than once, as in "6 2 9 8 8"? Do you want them to add to 30 or 33?
Make up your mind, then be specific, and stick to one thread.