Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: First Time Visual C++ User - Compiler Problems Pin
David Crow3-Aug-09 5:43
David Crow3-Aug-09 5:43 
AnswerRe: First Time Visual C++ User - Compiler Problems Pin
BSO_VC3-Aug-09 6:42
BSO_VC3-Aug-09 6:42 
QuestionRe: First Time Visual C++ User - Compiler Problems Pin
David Crow3-Aug-09 7:12
David Crow3-Aug-09 7:12 
AnswerRe: First Time Visual C++ User - Compiler Problems Pin
BSO_VC3-Aug-09 7:40
BSO_VC3-Aug-09 7:40 
QuestionRe: First Time Visual C++ User - Compiler Problems Pin
David Crow3-Aug-09 7:49
David Crow3-Aug-09 7:49 
AnswerRe: First Time Visual C++ User - Compiler Problems Pin
BSO_VC3-Aug-09 8:01
BSO_VC3-Aug-09 8:01 
GeneralRe: First Time Visual C++ User - Compiler Problems Pin
David Crow3-Aug-09 8:07
David Crow3-Aug-09 8:07 
GeneralRe: First Time Visual C++ User - Compiler Problems Pin
BSO_VC3-Aug-09 8:40
BSO_VC3-Aug-09 8:40 
QuestionAny algorithm for Text Edit for Limited Text Display Pin
sakthii3-Aug-09 5:13
sakthii3-Aug-09 5:13 
QuestionRead function is not working properly.. Pin
Rakesh53-Aug-09 4:36
Rakesh53-Aug-09 4:36 
QuestionRe: Read function is not working properly.. Pin
David Crow3-Aug-09 5:11
David Crow3-Aug-09 5:11 
QuestionProblem in Displaying Simplified Chinese. Pin
gothic_coder3-Aug-09 3:35
gothic_coder3-Aug-09 3:35 
AnswerRe: Problem in Displaying Simplified Chinese. Pin
gothic_coder3-Aug-09 22:33
gothic_coder3-Aug-09 22:33 
Questionhow can change MDSN font size? Pin
buffering833-Aug-09 3:30
buffering833-Aug-09 3:30 
AnswerRe: how can change MDSN font size? Pin
«_Superman_»3-Aug-09 4:39
professional«_Superman_»3-Aug-09 4:39 
Generalthank you^^ Pin
buffering833-Aug-09 5:02
buffering833-Aug-09 5:02 
Questionperformance counter issue Pin
De@r3-Aug-09 3:13
De@r3-Aug-09 3:13 
QuestionRe: performance counter issue Pin
David Crow3-Aug-09 3:52
David Crow3-Aug-09 3:52 
QuestionFailing Debug vs Working Release ? Pin
od@ananzi.co.za3-Aug-09 2:01
od@ananzi.co.za3-Aug-09 2:01 
AnswerRe: Failing Debug vs Working Release ? Pin
Souldrift3-Aug-09 4:48
Souldrift3-Aug-09 4:48 
GeneralRe: Failing Debug vs Working Release ? Pin
od@ananzi.co.za3-Aug-09 5:18
od@ananzi.co.za3-Aug-09 5:18 
GeneralRe: Failing Debug vs Working Release ? Pin
Souldrift3-Aug-09 5:32
Souldrift3-Aug-09 5:32 
GeneralRe: Failing Debug vs Working Release ? Pin
od@ananzi.co.za3-Aug-09 7:34
od@ananzi.co.za3-Aug-09 7:34 
QuestionI need help with my code Pin
bzz073-Aug-09 1:39
bzz073-Aug-09 1:39 
AnswerRe: I need help with my code Pin
Luc Pattyn3-Aug-09 2:17
sitebuilderLuc Pattyn3-Aug-09 2:17 
Hi,

not sure since you didn't show all declarations, but this should come close:

int sums[4];

for (int i=0; i<4; i++) {
    sums[i]=0;
    for(int j=0; j<3; j++) {
        c[i][j] = x[i][j] * w[i][j];
        sums[i] += c[i][j];
        printf("Output[%d]: %.1f ",i+1,c[i][j]);
    }
    printf("\n");
    printf("Sum: %.1f\n",sums[i]);
}


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

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.