Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SMTP in MFC Pin
markkuk16-Jul-03 3:32
markkuk16-Jul-03 3:32 
GeneralRe: SMTP in MFC Pin
Ryan Binns16-Jul-03 4:19
Ryan Binns16-Jul-03 4:19 
GeneralRe: SMTP in MFC Pin
Ravi Bhavnani16-Jul-03 4:08
professionalRavi Bhavnani16-Jul-03 4:08 
GeneralRe: SMTP in MFC Pin
Lhenno Ferrari16-Jul-03 6:44
Lhenno Ferrari16-Jul-03 6:44 
Generaldrawing line numbers in MFC Pin
mcguile25715-Jul-03 15:12
mcguile25715-Jul-03 15:12 
GeneralRe: drawing line numbers in MFC Pin
Ryan Binns15-Jul-03 20:40
Ryan Binns15-Jul-03 20:40 
QuestionString Factorial?? Pin
Paul Farry15-Jul-03 15:06
professionalPaul Farry15-Jul-03 15:06 
AnswerRe: String Factorial?? Pin
David Crow16-Jul-03 3:20
David Crow16-Jul-03 3:20 
Kinda cheesy but here's one way:

CStringArray arr;
CString str;

for (char l1 = 'A'; l1 <= 'E'; l1++)
{
    str = l1;
    arr.Add(str);
}

for (l1 = 'A'; l1 <= 'E'; l1++)
{
    for (char l2 = 'A'; l2 <= 'E'; l2++)
    {
        str = l1 + l2;
        arr.Add(str);
    }
}

for (l1 = 'A'; l1 <= 'E'; l1++)
{
    for (char l2 = 'A'; l2 <= 'E'; l2++)
    {
        for (char l3 = 'A'; l3 <= 'E'; l3++)
        {
            str = l1 + l2 + l3;
            arr.Add(str);
        }
    }
}

for (l1 = 'A'; l1 <= 'E'; l1++)
{
    for (char l2 = 'A'; l2 <= 'E'; l2++)
    {
        for (char l3 = 'A'; l3 <= 'E'; l3++)
        {
            for (char l4 = 'A'; l4 <= 'E'; l4++)
            {
                str = l1 + l2 + l3 + l4;
                arr.Add(str);
            }
        }
    }
}

for (l1 = 'A'; l1 <= 'E'; l1++)
{
    for (char l2 = 'A'; l2 <= 'E'; l2++)
    {
        for (char l3 = 'A'; l3 <= 'E'; l3++)
        {
            for (char l4 = 'A'; l4 <= 'E'; l4++)
            {
                for (char l5 = 'A'; l5 <= 'E'; l5++)
                {
                    str = l1 + l2 + l3 + l4 + l5;
                    arr.Add(str);
                }
            }
        }
    }
}

I believe that yields 3,905 (51 + 52 + 53 + 54 + 55) combinations.
AnswerRe: String Factorial?? Pin
wb16-Jul-03 3:29
wb16-Jul-03 3:29 
GeneralCompressing &amp; then Overlaying one image on top of another Pin
Nirav Thakkar15-Jul-03 13:22
Nirav Thakkar15-Jul-03 13:22 
GeneralIMAPI Sample Code Pin
Martin Hinchy15-Jul-03 12:18
Martin Hinchy15-Jul-03 12:18 
GeneralStart menu button text... Pin
adamUK15-Jul-03 12:02
adamUK15-Jul-03 12:02 
GeneralRe: Start menu button text... Pin
Ryan Binns15-Jul-03 15:02
Ryan Binns15-Jul-03 15:02 
GeneralRe: Start menu button text... Pin
David Crow16-Jul-03 3:33
David Crow16-Jul-03 3:33 
GeneralClickety Police! Pin
Ryan Binns16-Jul-03 4:25
Ryan Binns16-Jul-03 4:25 
GeneralRichEdit Creation Problems Pin
Sundy15-Jul-03 11:35
Sundy15-Jul-03 11:35 
GeneralRe: RichEdit Creation Problems Pin
adamUK15-Jul-03 11:51
adamUK15-Jul-03 11:51 
GeneralRe: RichEdit Creation Problems Pin
Michael Dunn15-Jul-03 12:25
sitebuilderMichael Dunn15-Jul-03 12:25 
GeneralSuggestions Needed: Populating ListView Pin
Frank Deo15-Jul-03 11:15
Frank Deo15-Jul-03 11:15 
GeneralRe: Suggestions Needed: Populating ListView Pin
valikac16-Jul-03 4:52
valikac16-Jul-03 4:52 
QuestionHow to do Windows Service Programmatically Pin
PrasadD15-Jul-03 10:50
PrasadD15-Jul-03 10:50 
AnswerRe: How to do Windows Service Programmatically Pin
Frank Deo15-Jul-03 11:17
Frank Deo15-Jul-03 11:17 
GeneralGetting windows running process list Pin
PrasadD15-Jul-03 10:48
PrasadD15-Jul-03 10:48 
GeneralRe: Getting windows running process list Pin
Ryan Binns15-Jul-03 14:56
Ryan Binns15-Jul-03 14:56 
GeneralMemory Mapped Files and Performance Strategies Pin
Steve The Plant15-Jul-03 10:00
Steve The Plant15-Jul-03 10:00 

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.