Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: realloc function problem [modified] Pin
blue_rabbit3-Mar-07 21:12
blue_rabbit3-Mar-07 21:12 
GeneralRe: realloc function problem [modified] Pin
Ayman Mashal3-Mar-07 21:53
Ayman Mashal3-Mar-07 21:53 
GeneralRe: realloc function problem [modified] Pin
blue_rabbit3-Mar-07 23:36
blue_rabbit3-Mar-07 23:36 
QuestionRe: realloc function problem Pin
prasad_som3-Mar-07 20:29
prasad_som3-Mar-07 20:29 
AnswerRe: realloc function problem Pin
Ayman Mashal3-Mar-07 22:43
Ayman Mashal3-Mar-07 22:43 
QuestionCalculator Project Pin
Charles Covington3-Mar-07 12:50
Charles Covington3-Mar-07 12:50 
AnswerRe: Calculator Project Pin
prasad_som3-Mar-07 17:53
prasad_som3-Mar-07 17:53 
AnswerRe: Calculator Project Pin
Newbie004-Mar-07 0:52
Newbie004-Mar-07 0:52 
You didn't write what exacly is the problem, but i think I know. Maybe I'm wrong, but you've declared variables: double display,memory; and you haven't initialized them with any value (in your case the smart choice would be 0), so these variables contain random values, because they are declared in main's body, and not as a global variables (global variables==0). According to my scribble, in case like this:
cin >> number;<br />
display = display + number;<br />

display will always contain random values.
Questionfast way 2 adjust contrast??? Pin
samreengr83-Mar-07 11:18
samreengr83-Mar-07 11:18 
QuestionRe: fast way 2 adjust contrast??? Pin
Mark Salsbery5-Mar-07 7:00
Mark Salsbery5-Mar-07 7:00 
AnswerRe: fast way 2 adjust contrast??? Pin
Rilhas5-Mar-07 13:38
Rilhas5-Mar-07 13:38 
Questionhow do i connect to SQl SERVER WHIT vc++.NET? Pin
Ehsan_aminian3-Mar-07 11:10
Ehsan_aminian3-Mar-07 11:10 
AnswerRe: how do i connect to SQl SERVER WHIT vc++.NET? Pin
Hamid_RT4-Mar-07 5:18
Hamid_RT4-Mar-07 5:18 
QuestionOpinions solicited - naming of access methods... Pin
charlieg3-Mar-07 7:47
charlieg3-Mar-07 7:47 
AnswerRe: Opinions solicited - naming of access methods... Pin
Maximilien3-Mar-07 10:39
Maximilien3-Mar-07 10:39 
QuestionMenu management on dialog based project Pin
ilgale3-Mar-07 6:27
ilgale3-Mar-07 6:27 
AnswerRe: Menu management on dialog based project Pin
Tony Hill3-Mar-07 9:14
professionalTony Hill3-Mar-07 9:14 
QuestionBest Book? Pin
Dirso3-Mar-07 5:20
Dirso3-Mar-07 5:20 
AnswerRe: Best Book? Pin
Rajesh R Subramanian5-Mar-07 23:54
professionalRajesh R Subramanian5-Mar-07 23:54 
QuestionHiding program from task manager. Pin
AprNgp3-Mar-07 4:38
AprNgp3-Mar-07 4:38 
AnswerRe: Hiding program from task manager. Pin
Waldermort3-Mar-07 5:15
Waldermort3-Mar-07 5:15 
AnswerRe: Hiding program from task manager. Pin
Newbie003-Mar-07 5:15
Newbie003-Mar-07 5:15 
AnswerRe: Hiding program from task manager. Pin
Gochha3-Mar-07 6:38
Gochha3-Mar-07 6:38 
AnswerRe: Hiding program from task manager. Pin
Hamid_RT3-Mar-07 6:43
Hamid_RT3-Mar-07 6:43 
GeneralRe: Hiding program from task manager. Pin
AprNgp3-Mar-07 23:13
AprNgp3-Mar-07 23:13 

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.