Incremental alphabet from charset
I've been trying to do this for a while, with no luck.
I've got a charset,
Code:
char charset[1024];
That always contains 2 or more characters.
I've been trying to take the chars from the charset and make words from them, incrementally to a certain length.
It's hard to explain.
I have an array, AKA Code:
char charset[1024];
Lets say it contains and the max length is 2, ill get:
Code:
a
b
c
aa
ab
ac
ba
bb
bc
ca
cb
cc
----------------------------------------
I've had no luck.
Could somebody shed some light on this?
EDIT:
By the way, i'm not asking for code, just a few tips.