To jedynie permutacja ale można szybko zamienić ten kod aby wyszukiwał wszystkie kombinacje#include <iostream>
#include <algorithm>
int main()
{
char tab[] = "abcdefghijklmnoprstuvwxyz1234567890";
size_t size = sizeof(tab) - 1;
std::sort (tab, tab + size);
do std::cout << tab << std::endl;
while ( std::next_permutation(tab, tab + size) );
return 0;
}