Click here to Skip to main content
15,896,310 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: the anti-static dilemma Pin
Mark Salsbery19-Jun-07 15:23
Mark Salsbery19-Jun-07 15:23 
AnswerRe: the anti-static dilemma Pin
Cedric Moonen19-Jun-07 21:00
Cedric Moonen19-Jun-07 21:00 
GeneralRe: the anti-static dilemma Pin
Cyrilix20-Jun-07 3:13
Cyrilix20-Jun-07 3:13 
GeneralRe: the anti-static dilemma Pin
Matthew Faithfull20-Jun-07 3:29
Matthew Faithfull20-Jun-07 3:29 
Questionwhy the data would change with no trace? Pin
kcynic19-Jun-07 12:57
kcynic19-Jun-07 12:57 
QuestionRe: why the data would change with no trace? Pin
Mark Salsbery19-Jun-07 14:26
Mark Salsbery19-Jun-07 14:26 
AnswerRe: why the data would change with no trace? Pin
kcynic20-Jun-07 0:24
kcynic20-Jun-07 0:24 
AnswerRe: why the data would change with no trace? Pin
Roger Stoltz20-Jun-07 0:49
Roger Stoltz20-Jun-07 0:49 
kcynic wrote:
when the loop is brocken,the value of curPlayer became 0!


The way you've written the code, the loop will never exit in a controlled manner since the value of neither index nor curPlayer changes inside the loop.
The loop exits because the address space of the index variable will be overwritten in the call to itoa() when q points to that address space. Then index will get a value greater than curPlayer.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: why the data would change with no trace? Pin
kcynic20-Jun-07 3:02
kcynic20-Jun-07 3:02 
GeneralRe: why the data would change with no trace? Pin
Roger Stoltz20-Jun-07 4:01
Roger Stoltz20-Jun-07 4:01 
GeneralRe: why the data would change with no trace? Pin
kcynic21-Jun-07 0:59
kcynic21-Jun-07 0:59 
QuestionDetecting Remote Desktop Events Pin
Akin Ocal19-Jun-07 12:02
Akin Ocal19-Jun-07 12:02 
AnswerRe: Detecting Remote Desktop Events Pin
Randor 19-Jun-07 13:06
professional Randor 19-Jun-07 13:06 
QuestionScott Meyer and C++ Pin
C_Zealot19-Jun-07 12:01
C_Zealot19-Jun-07 12:01 
AnswerRe: Scott Meyer and C++ Pin
George L. Jackson19-Jun-07 12:19
George L. Jackson19-Jun-07 12:19 
Questionswitching between two windows using glut Pin
moonraker92819-Jun-07 9:48
moonraker92819-Jun-07 9:48 
QuestionRe: switching between two windows using glut Pin
Hamid_RT20-Jun-07 8:47
Hamid_RT20-Jun-07 8:47 
AnswerRe: switching between two windows using glut Pin
moonraker92820-Jun-07 9:50
moonraker92820-Jun-07 9:50 
Questionxloper struct Pin
A7Zulu19-Jun-07 9:37
A7Zulu19-Jun-07 9:37 
AnswerRe: xloper struct Pin
David Crow19-Jun-07 10:21
David Crow19-Jun-07 10:21 
GeneralRe: xloper struct Pin
A7Zulu19-Jun-07 10:47
A7Zulu19-Jun-07 10:47 
Questionreturning an pointer to an array to excel from C++ Pin
A7Zulu19-Jun-07 9:35
A7Zulu19-Jun-07 9:35 
AnswerRe: returning an pointer to an array to excel from C++ Pin
Sameerkumar Namdeo19-Jun-07 17:06
Sameerkumar Namdeo19-Jun-07 17:06 
QuestionDynamically Instantiating Class Defined In DLL Pin
Peter Saint19-Jun-07 8:13
Peter Saint19-Jun-07 8:13 
AnswerRe: Dynamically Instantiating Class Defined In DLL Pin
Matthew Faithfull19-Jun-07 9:00
Matthew Faithfull19-Jun-07 9: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.