Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: create a dpi-aware application Pin
Theo Buys17-Dec-18 22:36
Theo Buys17-Dec-18 22:36 
QuestionCan we define the Right control key as an ACCELERATOR in the resource file ? Pin
Maximilien3-Nov-17 10:12
Maximilien3-Nov-17 10:12 
AnswerRe: Can we define the Right control key as an ACCELERATOR in the resource file ? Pin
Richard MacCutchan5-Nov-17 2:09
mveRichard MacCutchan5-Nov-17 2:09 
GeneralRe: Can we define the Right control key as an ACCELERATOR in the resource file ? Pin
Maximilien7-Nov-17 5:48
Maximilien7-Nov-17 5:48 
QuestionFind maximun range of an array Pin
Member 135010212-Nov-17 22:35
Member 135010212-Nov-17 22:35 
QuestionRe: Find maximun range of an array Pin
David Crow3-Nov-17 3:51
David Crow3-Nov-17 3:51 
SuggestionRe: Find maximun range of an array Pin
Sascha Lefèvre3-Nov-17 4:22
professionalSascha Lefèvre3-Nov-17 4:22 
AnswerRe: Find maximun range of an array Pin
Sascha Lefèvre3-Nov-17 14:17
professionalSascha Lefèvre3-Nov-17 14:17 
This surely is your homework, so I won't rob you of the opportunity to find the solution yourself.

But I'll try to nudge you onto the right track:

- Take a pen and paper, write down some random value sequences as input arrays and solve them manually. Try to do this in an algorithmic way. Use some longer sequences than you showed here.

- You can't have nested loops over n for O(n), obviously. So you will have to make do with one pass over the array. But you're free to use more or other variables.

- The solution is surprisingly easy and succinct - don't think too complicated.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

QuestionCalculate sum of M natural numbers starting from N. Pin
Member 134789861-Nov-17 9:16
Member 134789861-Nov-17 9:16 
AnswerRe: Calculate sum of M natural numbers starting from N. Pin
Victor Nijegorodov1-Nov-17 9:49
Victor Nijegorodov1-Nov-17 9:49 
GeneralRe: Calculate sum of M natural numbers starting from N. Pin
Member 134789861-Nov-17 10:19
Member 134789861-Nov-17 10:19 
AnswerRe: Calculate sum of M natural numbers starting from N. Pin
CPallini1-Nov-17 10:53
mveCPallini1-Nov-17 10:53 
GeneralRe: Calculate sum of M natural numbers starting from N. Pin
Member 134789861-Nov-17 10:57
Member 134789861-Nov-17 10:57 
Question[win32] sprite error ? Pin
bluatigro1-Nov-17 3:03
bluatigro1-Nov-17 3:03 
AnswerRe: [win32] sprite error ? Pin
Richard MacCutchan1-Nov-17 3:18
mveRichard MacCutchan1-Nov-17 3:18 
AnswerRe: [win32] sprite error ? Pin
Jochen Arndt1-Nov-17 3:26
professionalJochen Arndt1-Nov-17 3:26 
AnswerRe: [win32] sprite error ? Pin
David Crow1-Nov-17 3:32
David Crow1-Nov-17 3:32 
GeneralRe: [win32] sprite error ? Pin
bluatigro2-Nov-17 0:13
bluatigro2-Nov-17 0:13 
GeneralRe: [win32] sprite error ? Pin
bluatigro2-Nov-17 1:01
bluatigro2-Nov-17 1:01 
GeneralRe: [win32] sprite error ? Pin
Richard MacCutchan2-Nov-17 1:46
mveRichard MacCutchan2-Nov-17 1:46 
GeneralRe: [win32] sprite error ? Pin
bluatigro3-Nov-17 0:09
bluatigro3-Nov-17 0:09 
GeneralRe: [win32] sprite error ? Pin
Richard MacCutchan3-Nov-17 0:28
mveRichard MacCutchan3-Nov-17 0:28 
GeneralRe: [win32] sprite error ? Pin
bluatigro7-Nov-17 22:36
bluatigro7-Nov-17 22:36 
GeneralRe: [win32] sprite error ? Pin
Richard MacCutchan7-Nov-17 22:45
mveRichard MacCutchan7-Nov-17 22:45 
Question[win32] VR double buffering ? Pin
bluatigro31-Oct-17 4:24
bluatigro31-Oct-17 4:24 

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.