Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: monitor memory leak Pin
Hamid_RT20-Jan-08 18:27
Hamid_RT20-Jan-08 18:27 
GeneralRe: monitor memory leak Pin
George_George20-Jan-08 20:56
George_George20-Jan-08 20:56 
Generalurgent help Pin
gentleguy17-Jan-08 21:44
gentleguy17-Jan-08 21:44 
GeneralRe: urgent help Pin
CPallini17-Jan-08 21:48
mveCPallini17-Jan-08 21:48 
GeneralRe: urgent help Pin
gentleguy17-Jan-08 22:51
gentleguy17-Jan-08 22:51 
QuestionRe: urgent help Pin
CPallini17-Jan-08 23:04
mveCPallini17-Jan-08 23:04 
GeneralRe: urgent help Pin
gentleguy17-Jan-08 23:25
gentleguy17-Jan-08 23:25 
GeneralRe: urgent help Pin
CPallini17-Jan-08 23:39
mveCPallini17-Jan-08 23:39 
something like the following?
int n;
int sum[3];
int num[3];
for (n=0; n<3; n++)
{
  sum[n]=0;
  num[n]=0;
}
for (int k = 0; k< 150; k++)
{
  for (n=0; n<3; n++)
  {
    if (d[k] == c[k][n])
    {
      sum[n] = sum[n] + d[k]; // or sum[n] += d[k]
      num[n] = num[n] + 1; // see the above remark 
    }
  }
}


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

[my articles]


GeneralRe: urgent help Pin
gentleguy18-Jan-08 22:26
gentleguy18-Jan-08 22:26 
GeneralRe: urgent help Pin
gentleguy19-Jan-08 0:50
gentleguy19-Jan-08 0:50 
GeneralRe: urgent help Pin
cp987617-Jan-08 23:39
cp987617-Jan-08 23:39 
GeneralRe: urgent help Pin
David Crow18-Jan-08 2:43
David Crow18-Jan-08 2:43 
JokeRe: urgent help Pin
CPallini18-Jan-08 2:59
mveCPallini18-Jan-08 2:59 
QuestionRe: urgent help Pin
David Crow18-Jan-08 3:03
David Crow18-Jan-08 3:03 
JokeRe: urgent help Pin
CPallini18-Jan-08 3:13
mveCPallini18-Jan-08 3:13 
GeneralRe: urgent help Pin
tina->newcoder18-Jan-08 6:30
tina->newcoder18-Jan-08 6:30 
GeneralRe: urgent help Pin
Member 75496018-Jan-08 9:42
Member 75496018-Jan-08 9:42 
QuestionHow to Connect two Clients which are in different LANs Pin
pengpcz17-Jan-08 21:43
pengpcz17-Jan-08 21:43 
GeneralRe: How to Connect two Clients which are in different LANs Pin
Iain Clarke, Warrior Programmer18-Jan-08 2:28
Iain Clarke, Warrior Programmer18-Jan-08 2:28 
QuestionRe: How to Connect two Clients which are in different LANs Pin
pengpcz18-Jan-08 14:20
pengpcz18-Jan-08 14:20 
GeneralRe: How to Connect two Clients which are in different LANs Pin
David Crow18-Jan-08 2:46
David Crow18-Jan-08 2:46 
GeneralRun time check failure Pin
subramanyeswari17-Jan-08 19:59
subramanyeswari17-Jan-08 19:59 
QuestionRe: Run time check failure Pin
CPallini17-Jan-08 21:20
mveCPallini17-Jan-08 21:20 
GeneralRe: Run time check failure Pin
subramanyeswari17-Jan-08 22:45
subramanyeswari17-Jan-08 22:45 
QuestionRe: Run time check failure [modified] Pin
CPallini17-Jan-08 23:02
mveCPallini17-Jan-08 23:02 

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.