Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: customizing crystal reports Pin
harcaype28-Nov-08 13:40
harcaype28-Nov-08 13:40 
QuestionMaking a class public Pin
Thekaninos27-Nov-08 2:32
Thekaninos27-Nov-08 2:32 
AnswerRe: Making a class public Pin
Simon P Stevens27-Nov-08 2:53
Simon P Stevens27-Nov-08 2:53 
GeneralRe: Making a class public [modified] Pin
Thekaninos27-Nov-08 3:14
Thekaninos27-Nov-08 3:14 
GeneralRe: Making a class public Pin
Simon P Stevens27-Nov-08 3:24
Simon P Stevens27-Nov-08 3:24 
AnswerRe: Making a class public Pin
PIEBALDconsult27-Nov-08 4:10
mvePIEBALDconsult27-Nov-08 4:10 
QuestionLetter Combination Pin
Silvyster27-Nov-08 2:01
Silvyster27-Nov-08 2:01 
AnswerRe: Letter Combination Pin
Simon P Stevens27-Nov-08 3:12
Simon P Stevens27-Nov-08 3:12 
You could do it recursively.

All combinations of "ABCD" can be calculated as

"A",
and all combinations of "BCD",
and all combinations of "BCD" with an "A" added at the beginning.

All combinations of "BCD" is:

"B"
and all combinations of "CD"
and all combinations of "CD" with a B added at the beginning

All combinations of "CD" is:

"C"
and all combinations of "D"
and all combinations of "D" with a C added at the beginning.

All combinations of "D" is:

"D"

Pass back up.

All combinations of "CD" is:

"C" and "D" and "CD".

Pass back up.

All combinations of "BCD" is:

"B" and "C" and "D" and "CD" and "BC" and "BD" and "BCD".

Pass back up.

all Combinations of "ABCD" is:

"A" and "B" and "C" and "D" and "CD" and "BC" and "BD" and "BCD" and "AB" and "AC" and "AD" and "ACD" and "ABC" and "ABD" and "ABCD".

And there is your answer:
"A"
"B"
"C"
"D"
"AB"
"AC"
"AD"
"BC"
"BD"
"CD"
"ABC"
"ABD"
"ACD"
"BCD"
"ABCD"

Of course recursion probably isn't the best way. It would be easier with a for loop, but everyone knows recursion is more fun. Wink | ;)

Simon

AnswerRe: Letter Combination Pin
Guffa27-Nov-08 3:20
Guffa27-Nov-08 3:20 
QuestionWhy doesnt this function for controls objects work? [modified] Pin
Matjaz-xyz27-Nov-08 1:45
Matjaz-xyz27-Nov-08 1:45 
AnswerRe: Why doesnt this function for creating objects work? Pin
leppie27-Nov-08 1:55
leppie27-Nov-08 1:55 
GeneralRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:01
Matjaz-xyz27-Nov-08 2:01 
AnswerRe: Why doesnt this function for creating objects work? Pin
leppie27-Nov-08 1:57
leppie27-Nov-08 1:57 
GeneralRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:17
Matjaz-xyz27-Nov-08 2:17 
GeneralRe: Why doesnt this function for creating objects work? Pin
Tom Deketelaere27-Nov-08 2:21
professionalTom Deketelaere27-Nov-08 2:21 
GeneralRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:23
Matjaz-xyz27-Nov-08 2:23 
AnswerRe: Why doesnt this function for creating objects work? Pin
Matjaz-xyz27-Nov-08 2:20
Matjaz-xyz27-Nov-08 2:20 
AnswerRe: Why doesnt this function for controls objects work? Pin
Thomas Weller27-Nov-08 2:25
Thomas Weller27-Nov-08 2:25 
QuestionFind Hndlers of an other application Windows Pin
franco nero27-Nov-08 1:40
franco nero27-Nov-08 1:40 
AnswerRe: Find Hndlers of an other application Windows Pin
Giorgi Dalakishvili27-Nov-08 1:55
mentorGiorgi Dalakishvili27-Nov-08 1:55 
QuestionReflection - practical application Pin
devvvy27-Nov-08 1:38
devvvy27-Nov-08 1:38 
AnswerRe: Reflection - practical application Pin
Simon P Stevens27-Nov-08 1:45
Simon P Stevens27-Nov-08 1:45 
GeneralRe: Reflection - practical application Pin
devvvy27-Nov-08 2:18
devvvy27-Nov-08 2:18 
GeneralRe: Reflection - practical application Pin
Simon P Stevens27-Nov-08 2:47
Simon P Stevens27-Nov-08 2:47 
AnswerRe: Reflection - practical application Pin
Eddy Vluggen27-Nov-08 2:48
professionalEddy Vluggen27-Nov-08 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.