Click here to Skip to main content
15,845,912 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 6:24
jschell20-Jun-23 6: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 6:27
mveRichard MacCutchan20-Jun-23 6: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 6:33
jschell20-Jun-23 6: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 7:17
mveRichard MacCutchan20-Jun-23 7: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 8:41
jschell22-Jun-23 8: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 9:39
trønderen19-Jun-23 9: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 20:49
mveRichard Deeming19-Jun-23 20: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 7:05
kalberts20-Jun-23 7: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 9:05
jschell22-Jun-23 9: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 6:30
jschell20-Jun-23 6: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 6:53
trønderen20-Jun-23 6: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 8:57
jschell22-Jun-23 8: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 7:19
mveRichard MacCutchan20-Jun-23 7: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 8:58
jschell22-Jun-23 8: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 10:36
mveRichard MacCutchan22-Jun-23 10: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 11:29
jschell23-Jun-23 11:29 
QuestionRegQueryValueExW vs RegQueryValueExA Pin
PV202317-Jun-23 23:41
PV202317-Jun-23 23:41 
AnswerRe: RegQueryValueExW vs RegQueryValueExA Pin
Graham Breach18-Jun-23 2:34
Graham Breach18-Jun-23 2:34 
GeneralRe: RegQueryValueExW vs RegQueryValueExA Pin
PV202318-Jun-23 5:05
PV202318-Jun-23 5:05 
GeneralRe: RegQueryValueExW vs RegQueryValueExA Pin
Dave Kreskowiak18-Jun-23 5:42
mveDave Kreskowiak18-Jun-23 5:42 
Questionmutex problem Pin
PV202314-Jun-23 21:51
PV202314-Jun-23 21:51 
AnswerRe: mutex problem Pin
Richard MacCutchan14-Jun-23 22:17
mveRichard MacCutchan14-Jun-23 22:17 
AnswerRe: mutex problem Pin
jschell15-Jun-23 3:33
jschell15-Jun-23 3:33 
QuestionIs there a way to add all the elements of a vector to an integer sequentially? Pin
puckettrobinson6755-Jun-23 19:16
puckettrobinson6755-Jun-23 19:16 
AnswerRe: Is there a way to add all the elements of a vector to an integer sequentially? Pin
Victor Nijegorodov5-Jun-23 21:39
Victor Nijegorodov5-Jun-23 21: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.