Click here to Skip to main content
15,850,103 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To find biggest of n numbers ? Pin
Tarun Jha13-Oct-17 7:02
Tarun Jha13-Oct-17 7:02 
GeneralRe: To find biggest of n numbers ? Pin
jschell15-Oct-17 8:11
jschell15-Oct-17 8:11 
AnswerRe: To find biggest of n numbers ? Pin
Richard MacCutchan13-Oct-17 7:16
mveRichard MacCutchan13-Oct-17 7:16 
GeneralRe: To find biggest of n numbers ? Pin
Tarun Jha13-Oct-17 7:22
Tarun Jha13-Oct-17 7:22 
GeneralRe: To find biggest of n numbers ? Pin
jeron113-Oct-17 7:34
jeron113-Oct-17 7:34 
GeneralRe: To find biggest of n numbers ? Pin
Richard MacCutchan13-Oct-17 7:51
mveRichard MacCutchan13-Oct-17 7:51 
GeneralRe: To find biggest of n numbers ? Pin
Tarun Jha13-Oct-17 8:14
Tarun Jha13-Oct-17 8:14 
GeneralRe: To find biggest of n numbers ? Pin
David Crow13-Oct-17 17:10
David Crow13-Oct-17 17:10 
Tarun Jha wrote:
...only works some time
Which technically means it does not work. If your algorithm is dependent upon its input in order to produce the correct output, it is wrong, period.

You should be able to do this entire exercise using pencil and paper before ever committing anything to code. Short of that and you are just guessing (hoping) at best.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


GeneralRe: To find biggest of n numbers ? Pin
Richard MacCutchan13-Oct-17 23:33
mveRichard MacCutchan13-Oct-17 23:33 
AnswerRe: To find biggest of n numbers ? Pin
leon de boer13-Oct-17 7:50
leon de boer13-Oct-17 7:50 
Questionwhile error ? Pin
bluatigro12-Oct-17 1:23
bluatigro12-Oct-17 1:23 
QuestionRe: while error ? Pin
David Crow12-Oct-17 3:35
David Crow12-Oct-17 3:35 
AnswerRe: while error ? Pin
Manish K. Agarwal12-Oct-17 5:22
Manish K. Agarwal12-Oct-17 5:22 
AnswerRe: while error ? Pin
Manish K. Agarwal12-Oct-17 5:26
Manish K. Agarwal12-Oct-17 5:26 
QuestionWhere is GetTickCount64()? Pin
inlandchris11-Oct-17 12:10
inlandchris11-Oct-17 12:10 
AnswerRe: Where is GetTickCount64()? Pin
Randor 11-Oct-17 12:52
professional Randor 11-Oct-17 12:52 
GeneralRe: Where is GetTickCount64()? Pin
inlandchris11-Oct-17 18:24
inlandchris11-Oct-17 18:24 
GeneralRe: Where is GetTickCount64()? Pin
Randor 11-Oct-17 20:26
professional Randor 11-Oct-17 20:26 
AnswerRe: Where is GetTickCount64()? Pin
leon de boer11-Oct-17 16:29
leon de boer11-Oct-17 16:29 
GeneralRe: Where is GetTickCount64()? Pin
inlandchris11-Oct-17 18:27
inlandchris11-Oct-17 18:27 
GeneralRe: Where is GetTickCount64()? Pin
Richard MacCutchan11-Oct-17 22:23
mveRichard MacCutchan11-Oct-17 22:23 
AnswerRe: Where is GetTickCount64()? Pin
inlandchris12-Oct-17 3:09
inlandchris12-Oct-17 3:09 
GeneralRe: Where is GetTickCount64()? Pin
leon de boer11-Oct-17 23:14
leon de boer11-Oct-17 23:14 
AnswerRe: Where is GetTickCount64()? Pin
inlandchris12-Oct-17 3:14
inlandchris12-Oct-17 3:14 
GeneralRe: Where is GetTickCount64()? Pin
inlandchris18-Oct-17 9:25
inlandchris18-Oct-17 9:25 

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.