Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String Pin
mazeed7-Jun-07 14:50
mazeed7-Jun-07 14:50 
GeneralRe: String Pin
mazeed7-Jun-07 14:56
mazeed7-Jun-07 14:56 
QuestionRe: String Pin
David Crow7-Jun-07 4:24
David Crow7-Jun-07 4:24 
QuestionSummation of numbers Pin
LiYS6-Jun-07 22:50
LiYS6-Jun-07 22:50 
AnswerRe: Summation of numbers Pin
CPallini6-Jun-07 23:21
mveCPallini6-Jun-07 23:21 
AnswerRe: Summation of numbers Pin
prasad_som6-Jun-07 23:42
prasad_som6-Jun-07 23:42 
AnswerRe: Summation of numbers Pin
Rajkumar R6-Jun-07 23:45
Rajkumar R6-Jun-07 23:45 
GeneralRe: Summation of numbers Pin
LiYS7-Jun-07 0:50
LiYS7-Jun-07 0:50 
Yes, I guess you're right, add the following asm statement makes the program result logical to me. But what's the theory behind this?

int sum(int n)
{
    int nn;
    int dummy = 0;
    if (n)
    {
       nn = (n + sum(n - 1));
       __asm
       {
           mov eax, 0
       }
    }
    else
       return 0;
}





AnswerRe: Summation of numbers Pin
Rajkumar R7-Jun-07 3:00
Rajkumar R7-Jun-07 3:00 
AnswerRe: Summation of numbers Pin
Rajkumar R7-Jun-07 0:09
Rajkumar R7-Jun-07 0:09 
Questionc++ DLL get parameters Pin
Hayden256-Jun-07 22:47
Hayden256-Jun-07 22:47 
AnswerRe: c++ DLL get parameters Pin
David Crow7-Jun-07 4:27
David Crow7-Jun-07 4:27 
Questioncd drive Pin
nitin36-Jun-07 21:20
nitin36-Jun-07 21:20 
AnswerRe: cd drive Pin
Nibu babu thomas6-Jun-07 21:32
Nibu babu thomas6-Jun-07 21:32 
QuestionRe: cd drive Pin
David Crow7-Jun-07 4:28
David Crow7-Jun-07 4:28 
Questionproblem with _vsntprintf_s Pin
hansipet6-Jun-07 21:19
hansipet6-Jun-07 21:19 
AnswerRe: problem with _vsntprintf_s Pin
Matthew Faithfull6-Jun-07 22:23
Matthew Faithfull6-Jun-07 22:23 
QuestionAbout GetWindowLongPtr & SetWindowLongPtr Pin
zhongwenjia6-Jun-07 21:09
zhongwenjia6-Jun-07 21:09 
AnswerRe: About GetWindowLongPtr & SetWindowLongPtr Pin
Hans Dietrich7-Jun-07 0:52
mentorHans Dietrich7-Jun-07 0:52 
GeneralRe: About GetWindowLongPtr & SetWindowLongPtr Pin
zhongwenjia7-Jun-07 2:55
zhongwenjia7-Jun-07 2:55 
GeneralRe: About GetWindowLongPtr & SetWindowLongPtr Pin
Mark Salsbery7-Jun-07 5:07
Mark Salsbery7-Jun-07 5:07 
QuestionHow this is causing stack underflow Pin
LiYS6-Jun-07 20:40
LiYS6-Jun-07 20:40 
AnswerRe: How this is causing stack underflow Pin
Rajkumar R6-Jun-07 21:47
Rajkumar R6-Jun-07 21:47 
GeneralRe: How this is causing stack underflow [modified] Pin
LiYS6-Jun-07 22:15
LiYS6-Jun-07 22:15 
AnswerRe: How this is causing stack underflow Pin
Stephen Hewitt6-Jun-07 22:08
Stephen Hewitt6-Jun-07 22:08 

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.