[C++] If somebody can help
I want to create a program, that finds me all combinations of the words i give.
For exemple i give 5 words:
chair
firefox
notepad
word
paint
I want the program to give me all combinations:
chairfirefox
chairfirefoxnotepad
chairfirefoxnotepadword
chairfirefoxnotepadwordpaint
firefoxnotepad
.................................
etc
I guess that isn't so hard, but i don't know C++.
Thank You in advance.
Re: [C++] If somebody can help
Read the words into a std::string std::vector, then iterate through them all, for each iteration, iterate through the ones coming next, that would give you all possible combinations (if you also iterate through the number of iterations you will do on each element after the current main iteration...:-) ).
Unfortunately you will have to write and learn it yourself, we are not a codebase.