Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: focusing messagebox Pin
gamefreak229130-Mar-09 3:18
gamefreak229130-Mar-09 3:18 
AnswerRe: focusing messagebox Pin
Rajesh R Subramanian30-Mar-09 3:42
professionalRajesh R Subramanian30-Mar-09 3:42 
QuestionSMTP C++ Pin
jcy809629-Mar-09 14:09
jcy809629-Mar-09 14:09 
AnswerRe: SMTP C++ Pin
Joe Woodbury29-Mar-09 15:18
professionalJoe Woodbury29-Mar-09 15:18 
Questiontime difference Pin
Sadaiyappan29-Mar-09 10:15
Sadaiyappan29-Mar-09 10:15 
AnswerRe: time difference Pin
Stuart Dootson29-Mar-09 10:43
professionalStuart Dootson29-Mar-09 10:43 
AnswerRe: time difference Pin
Luc Pattyn29-Mar-09 14:27
sitebuilderLuc Pattyn29-Mar-09 14:27 
QuestionHelp not sure why. Pin
FISH78629-Mar-09 8:18
FISH78629-Mar-09 8:18 
Hello,

I have a combination algorithm I am trying to solve.

I have the formula and have got that to work if I didn't want the individual elements. However when I am trying to get to the individual elements, and I am having a problem. This is what I have so far. I know its not funny but the following works when I have to select 1 out of 2. However I get one extra count when I go and select 2 out of 3.
thanks a million in advance for helping .

//////////////////     n!/(n-k)!(k!)   ///////////////
k= 2;
n=3;
y=0;
i=n-k;
Total = 0;
for (y=0; y<(n-i);y++)
{
    for (x=y; x<(i+k);x++)
    {
        Total++;
    }
    i--;
}

AnswerRe: Help not sure why. Pin
Yusuf29-Mar-09 11:41
Yusuf29-Mar-09 11:41 
AnswerRe: Help not sure why. Pin
CPallini29-Mar-09 21:21
mveCPallini29-Mar-09 21:21 
GeneralRe: Help not sure why. Pin
FISH78630-Mar-09 2:25
FISH78630-Mar-09 2:25 
QuestionRe: Help not sure why. Pin
CPallini30-Mar-09 3:13
mveCPallini30-Mar-09 3:13 
AnswerRe: Help not sure why. Pin
FISH78630-Mar-09 3:20
FISH78630-Mar-09 3:20 
GeneralRe: Help not sure why. Pin
David Crow30-Mar-09 4:16
David Crow30-Mar-09 4:16 
GeneralRe: Help not sure why. [modified] Pin
FISH78630-Mar-09 4:36
FISH78630-Mar-09 4:36 
GeneralRe: Help not sure why. Pin
David Crow30-Mar-09 4:54
David Crow30-Mar-09 4:54 
GeneralRe: Help not sure why. Pin
FISH78630-Mar-09 4:59
FISH78630-Mar-09 4:59 
GeneralRe: Help not sure why. Pin
FISH78630-Mar-09 13:36
FISH78630-Mar-09 13:36 
QuestionMultiple Inheritance problem : CSingleLock : CSingleLock(pObject, bInitialLock) : CSyncObject(mystring) Pin
ForNow29-Mar-09 7:18
ForNow29-Mar-09 7:18 
QuestionRe: Multiple Inheritance problem : CSingleLock : CSingleLock(pObject, bInitialLock) : CSyncObject(mystring) Pin
CPallini29-Mar-09 7:51
mveCPallini29-Mar-09 7:51 
AnswerRe: Multiple Inheritance problem : CSingleLock : CSingleLock(pObject, bInitialLock) : CSyncObject(mystring) Pin
ForNow29-Mar-09 12:18
ForNow29-Mar-09 12:18 
Questionhave you ever seen this error? Pin
cs6008929-Mar-09 2:59
cs6008929-Mar-09 2:59 
AnswerRe: have you ever seen this error? Pin
cs6008929-Mar-09 3:00
cs6008929-Mar-09 3:00 
AnswerRe: have you ever seen this error? Pin
CPallini29-Mar-09 3:49
mveCPallini29-Mar-09 3:49 
AnswerRe: have you ever seen this error? Pin
Stuart Dootson29-Mar-09 3:49
professionalStuart Dootson29-Mar-09 3:49 

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.