Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Help not sure why. Pin
Yusuf29-Mar-09 11:41
Yusuf29-Mar-09 11:41 
I don't now what is your issue, but the code you posted does not work (infinite loop).

Initially your set k=2, n=3, so i=n-k =>1. Your innermost loop runs then you decrement i => 0, your condition on the outer loop is now y=1 and y < (n-i) => 2-0 => 2 and the condition is true, innermost loop runs then your decrement i => -1 (booom).

Since in the outer loop you're condition is y<(n-i) and i is now less than 0, effectively it is n-(-i) => n+i thus y = 2 and y < 3 is valid. Thus it is infinite loop.

Yusuf

Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

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 
Questionhave you ever seen this error? Pin
cs6008929-Mar-09 2:58
cs6008929-Mar-09 2:58 

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.