Hi,
I have an array of letters. I'd like to create every possible sequence of these letter (all combinations). Does Qt have have a combinatorical function that does such a thing?
Thank you!
Hi,
I have an array of letters. I'd like to create every possible sequence of these letter (all combinations). Does Qt have have a combinatorical function that does such a thing?
Thank you!
Not that I know of. Oh, and I suppose that you are not really interested in all possible sequences, as there are infinitely many of them.
You can use these functions.
combinatorics.h
combinatorics.cpp
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
timmu (10th August 2012)
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
timmu (10th August 2012)
Bookmarks