Click here to Skip to main content
15,886,919 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: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 
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 
<block<u>quote class="quote">
trønderen wrote:
Anyone who seriously considers this problem for a recursive solution

As I said "Looks like homework for recursion.."

But with my 40 years of development experience and numerous cases of recursion unrolling not to mention more than 30 years of formal designs and 20 of architecture...

Myself I would probably start by looking at the requirements to see why either solution was needed. Certainly in the past I have, after using all that experience, decided that a simple look up in a static data block would completely meet the needs of the application/requirements.

And of course that solution would be much more efficient than recursion or the similar unrolled version. In case you were unaware of that.
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 
AnswerRe: Is there a way to add all the elements of a vector to an integer sequentially? Pin
Richard MacCutchan5-Jun-23 21:30
mveRichard MacCutchan5-Jun-23 21:30 
AnswerRe: Is there a way to add all the elements of a vector to an integer sequentially? Pin
CPallini5-Jun-23 21:44
mveCPallini5-Jun-23 21:44 

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.