Click here to Skip to main content
15,918,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem with stack structure in C++(using pointer), plz help !!! Pin
CPallini19-Jan-10 23:44
mveCPallini19-Jan-10 23:44 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
Tim Craig20-Jan-10 12:55
Tim Craig20-Jan-10 12:55 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
CPallini20-Jan-10 21:32
mveCPallini20-Jan-10 21:32 
QuestionMessage Removed Pin
19-Jan-10 22:40
Mishgun5619-Jan-10 22:40 
AnswerRe: The problem with including headers in C++ Pin
Stuart Dootson19-Jan-10 22:48
professionalStuart Dootson19-Jan-10 22:48 
AnswerRe: The problem with including headers in C++ Pin
Stephen Hewitt19-Jan-10 22:50
Stephen Hewitt19-Jan-10 22:50 
GeneralRe: The problem with including headers in C++ Pin
Mishgun5619-Jan-10 22:56
Mishgun5619-Jan-10 22:56 
QuestionSwitching on and setting baud rate [modified] Pin
CodeyBlank19-Jan-10 21:28
CodeyBlank19-Jan-10 21:28 
AnswerRe: Switching on and setting baud rate Pin
Richard MacCutchan19-Jan-10 22:27
mveRichard MacCutchan19-Jan-10 22:27 
GeneralRe: Switching on and setting baud rate Pin
Garth J Lancaster19-Jan-10 22:30
professionalGarth J Lancaster19-Jan-10 22:30 
GeneralRe: Switching on and setting baud rate Pin
Richard MacCutchan20-Jan-10 0:43
mveRichard MacCutchan20-Jan-10 0:43 
GeneralRe: Switching on and setting baud rate Pin
CPallini20-Jan-10 3:01
mveCPallini20-Jan-10 3:01 
GeneralRe: Switching on and setting baud rate Pin
Richard MacCutchan20-Jan-10 3:30
mveRichard MacCutchan20-Jan-10 3:30 
AnswerRe: Switching on and setting baud rate Pin
Garth J Lancaster19-Jan-10 22:30
professionalGarth J Lancaster19-Jan-10 22:30 
GeneralRe: Switching on and setting baud rate Pin
CodeyBlank19-Jan-10 22:43
CodeyBlank19-Jan-10 22:43 
GeneralRe: Switching on and setting baud rate Pin
Garth J Lancaster19-Jan-10 22:55
professionalGarth J Lancaster19-Jan-10 22:55 
QuestionSplit multi image tiff file using CXImage Pin
Pryabu19-Jan-10 17:30
Pryabu19-Jan-10 17:30 
AnswerRe: Split multi image tiff file using CXImage Pin
Game-point19-Jan-10 21:07
Game-point19-Jan-10 21:07 
GeneralRe: Split multi image tiff file using CXImage Pin
Pryabu20-Jan-10 1:33
Pryabu20-Jan-10 1:33 
GeneralRe: Split multi image tiff file using CXImage Pin
PJ Arends20-Jan-10 5:28
professionalPJ Arends20-Jan-10 5:28 
QuestionDEBUG_NEW [modified] Pin
iceman861619-Jan-10 15:07
iceman861619-Jan-10 15:07 
AnswerRe: DEBUG_NEW Pin
Chris Losinger19-Jan-10 16:59
professionalChris Losinger19-Jan-10 16:59 
GeneralRe: DEBUG_NEW Pin
iceman861620-Jan-10 13:55
iceman861620-Jan-10 13:55 
QuestionProgram Which: Takes numbers from a user, and sum's them. Pin
rbwest8619-Jan-10 13:44
rbwest8619-Jan-10 13:44 
AnswerRe: Program Which: Takes numbers from a user, and sum's them. Pin
loyal ginger19-Jan-10 14:53
loyal ginger19-Jan-10 14:53 
Outside the loop you should initialize the variable "userinput". The statement
sum = sum + userinput

before the loop should be removed. This statement should appear somewhere inside the loop. Also, for this you can use the += operator instead. The ++userinput inside the loop should just be userinput without the ++ operator.

The variables "userinput" and "sum" are not "Global Variables". They are local to the function "main".

You need to work out the details.

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.