Click here to Skip to main content
15,907,910 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sample code which caculates HCF/LCM of two or more numbers? Pin
Nuri Ismail15-Feb-09 21:28
Nuri Ismail15-Feb-09 21:28 
QuestionUsing GetSystemTime in WM_KEYDOWN Pin
EvScott15-Feb-09 16:50
EvScott15-Feb-09 16:50 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
«_Superman_»15-Feb-09 17:21
professional«_Superman_»15-Feb-09 17:21 
GeneralRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 0:49
EvScott16-Feb-09 0:49 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 0:19
mveCPallini16-Feb-09 0:19 
GeneralRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 0:54
EvScott16-Feb-09 0:54 
QuestionRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 0:58
mveCPallini16-Feb-09 0:58 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 1:48
EvScott16-Feb-09 1:48 
QuestionRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 1:56
mveCPallini16-Feb-09 1:56 
AnswerRe: Using GetSystemTime in WM_KEYDOWN Pin
EvScott16-Feb-09 2:11
EvScott16-Feb-09 2:11 
GeneralRe: Using GetSystemTime in WM_KEYDOWN Pin
CPallini16-Feb-09 2:19
mveCPallini16-Feb-09 2:19 
QuestionUpdateLayeredWindow error code 8 with CreateCompatibleDC Pin
Zyraph15-Feb-09 14:50
Zyraph15-Feb-09 14:50 
QuestionHelp with a very basic program Pin
method4ever15-Feb-09 12:48
method4ever15-Feb-09 12:48 
AnswerRe: Help with a very basic program Pin
Maximilien15-Feb-09 13:26
Maximilien15-Feb-09 13:26 
GeneralRe: Help with a very basic program Pin
method4ever15-Feb-09 17:53
method4ever15-Feb-09 17:53 
AnswerRe: Help with a very basic program Pin
«_Superman_»15-Feb-09 15:34
professional«_Superman_»15-Feb-09 15:34 
GeneralRe: Help with a very basic program Pin
method4ever15-Feb-09 18:13
method4ever15-Feb-09 18:13 
GeneralRe: Help with a very basic program Pin
«_Superman_»15-Feb-09 18:30
professional«_Superman_»15-Feb-09 18:30 
GeneralRe: Help with a very basic program Pin
method4ever16-Feb-09 1:27
method4ever16-Feb-09 1:27 
AnswerRe: Help with a very basic program Pin
Iain Clarke, Warrior Programmer15-Feb-09 22:35
Iain Clarke, Warrior Programmer15-Feb-09 22:35 
1/ Please use the code block formatting, and the preview button - you'll be amazed how much easier your code is to read.

2/ As suggested, run your program with a pen and paper. You'll be surprised how much it helps.

3/ I'll give you a big clue you're already been given.
int smallest = 0;
if (j < smallest) { smallest = j; }


3a/
Think about how many numbers are smaller than zero. Are the numbers you've entering small than zero?
Changing it to 1 only makes things better than one.

3b/ You'll have the same problem with largest, if you type in all negative numbers.

Enjoy,

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

GeneralRe: Help with a very basic program Pin
LukeColowit17-Feb-09 2:52
LukeColowit17-Feb-09 2:52 
GeneralRe: Help with a very basic program Pin
Iain Clarke, Warrior Programmer17-Feb-09 7:32
Iain Clarke, Warrior Programmer17-Feb-09 7:32 
QuestionPlay a wav file in a dll from an exe? Pin
Hadi Dayvary15-Feb-09 10:37
professionalHadi Dayvary15-Feb-09 10:37 
QuestionCalculating the Number of Charcters in a Line Of a MultiLine Dialog Box Pin
ForNow15-Feb-09 10:16
ForNow15-Feb-09 10:16 
AnswerRe: Calculating the Number of Charcters in a Line Of a MultiLine Dialog Box Pin
Alexander M.,15-Feb-09 12:27
Alexander M.,15-Feb-09 12:27 

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.