Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell20-Jun-23 5:24
jschell20-Jun-23 5:24 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
Richard MacCutchan20-Jun-23 5:27
mveRichard MacCutchan20-Jun-23 5:27 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell20-Jun-23 5:33
jschell20-Jun-23 5:33 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
Richard MacCutchan20-Jun-23 6:17
mveRichard MacCutchan20-Jun-23 6:17 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell22-Jun-23 7:41
jschell22-Jun-23 7:41 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
trønderen19-Jun-23 8:39
trønderen19-Jun-23 8:39 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
Richard Deeming19-Jun-23 19:49
mveRichard Deeming19-Jun-23 19:49 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
kalberts20-Jun-23 6:05
kalberts20-Jun-23 6:05 
Richard Deeming wrote:
But if it's a homework assignment to teach the student about recursion, as jschell suggested...
... it is a very poor choice. Smile | :)

When teaching, I did give my students a recursive problem statement to solve. Most of the solutions were recursive. The main point of this exercise was to, in the next round, show how some recursions could be rolled out to loops; the problem statement was selected for this specific purpose: Learning when not to use recursion, even when it looks like the straightforward, obvious solution.

I never wold give my students a 'linear' problem statement (such as the one in the subject line), hoping that they would discover 'Hey, this iteration can be reformualated as a recursive method! Let's do that!'

If I were a teacher of higher math, I might use something in that direction to teach them to identify recursive structures. But I was a programming teacher. That is very different.
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell22-Jun-23 8:05
jschell22-Jun-23 8:05 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell20-Jun-23 5:30
jschell20-Jun-23 5:30 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
trønderen20-Jun-23 5:53
trønderen20-Jun-23 5:53 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell22-Jun-23 7:57
jschell22-Jun-23 7:57 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
Richard MacCutchan20-Jun-23 6:19
mveRichard MacCutchan20-Jun-23 6:19 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell22-Jun-23 7:58
jschell22-Jun-23 7:58 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
Richard MacCutchan22-Jun-23 9:36
mveRichard MacCutchan22-Jun-23 9:36 
GeneralRe: (20*23) + (25*28) + (30*33) + (35*38) +...........+ (m*(m-3)) what is the c programmimg code of the summetion of this series Pin
jschell23-Jun-23 10:29
jschell23-Jun-23 10:29 
QuestionRegQueryValueExW vs RegQueryValueExA Pin
PV202317-Jun-23 22:41
PV202317-Jun-23 22:41 
AnswerRe: RegQueryValueExW vs RegQueryValueExA Pin
Graham Breach18-Jun-23 1:34
Graham Breach18-Jun-23 1:34 
GeneralRe: RegQueryValueExW vs RegQueryValueExA Pin
PV202318-Jun-23 4:05
PV202318-Jun-23 4:05 
GeneralRe: RegQueryValueExW vs RegQueryValueExA Pin
Dave Kreskowiak18-Jun-23 4:42
mveDave Kreskowiak18-Jun-23 4:42 
Questionmutex problem Pin
PV202314-Jun-23 20:51
PV202314-Jun-23 20:51 
AnswerRe: mutex problem Pin
Richard MacCutchan14-Jun-23 21:17
mveRichard MacCutchan14-Jun-23 21:17 
AnswerRe: mutex problem Pin
jschell15-Jun-23 2:33
jschell15-Jun-23 2:33 
QuestionIs there a way to add all the elements of a vector to an integer sequentially? Pin
puckettrobinson6755-Jun-23 18:16
puckettrobinson6755-Jun-23 18:16 
AnswerRe: Is there a way to add all the elements of a vector to an integer sequentially? Pin
Victor Nijegorodov5-Jun-23 20:39
Victor Nijegorodov5-Jun-23 20:39 

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.