Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: virtual function Pin
Stephen Hewitt10-Feb-08 13:51
Stephen Hewitt10-Feb-08 13:51 
GeneralRe: virtual function Pin
George_George10-Feb-08 19:20
George_George10-Feb-08 19:20 
Questionhow to assign value of arrary to another one? Pin
gentleguy10-Feb-08 1:38
gentleguy10-Feb-08 1:38 
AnswerRe: how to assign value of arrary to another one? Pin
jeron110-Feb-08 8:21
jeron110-Feb-08 8:21 
GeneralRe: how to assign value of arrary to another one? Pin
gentleguy10-Feb-08 13:34
gentleguy10-Feb-08 13:34 
GeneralRe: how to assign value of arrary to another one? Pin
jeron110-Feb-08 15:30
jeron110-Feb-08 15:30 
GeneralRe: how to assign value of arrary to another one? Pin
gentleguy10-Feb-08 16:12
gentleguy10-Feb-08 16:12 
GeneralRe: how to assign value of arrary to another one? Pin
jeron111-Feb-08 2:25
jeron111-Feb-08 2:25 
Still not sure what the problem is but, try this
this supposes that array p and array gbest1 are declared something like array[10][3][4]


minValue = fitness[0];//fitness is a 10 elements array<br />
for (int count = 0;count<10;count++)<br />
{ <br />
  if (fitness[count] <= minValue )    //changed to <= (trying to find min) <br />
  {<br />
   minValue = fitness[count];<br />
   gbest_Ind = count;//gbest_Ind is an array of [1][3][4]<br />
  }<br />
}<br />
<br />
for (int j = 0; j<3; j++)<br />
{                            //added brackets<br />
   for (int k = 0; k<4; k++)<br />
  {<br />
  gbest1[gbest_Ind][j][k]=p[gbest_Ind][j][k];//p is an array of [10][3][4],<br />
  } <br />
}                            //added brackets

QuestionHow to add Button to Child Window ? Pin
tina->newcoder10-Feb-08 1:17
tina->newcoder10-Feb-08 1:17 
GeneralRe: How to add Button to Child Window ? Pin
Hamid_RT10-Feb-08 20:35
Hamid_RT10-Feb-08 20:35 
QuestionRe: How to add Button to Child Window ? Pin
David Crow11-Feb-08 3:31
David Crow11-Feb-08 3:31 
GeneralRe: How to add Button to Child Window ? Pin
tina->newcoder11-Feb-08 5:40
tina->newcoder11-Feb-08 5:40 
QuestionRe: How to add Button to Child Window ? Pin
David Crow11-Feb-08 5:45
David Crow11-Feb-08 5:45 
GeneralRe: How to add Button to Child Window ? Pin
tina->newcoder11-Feb-08 6:01
tina->newcoder11-Feb-08 6:01 
QuestionRe: How to add Button to Child Window ? Pin
David Crow11-Feb-08 6:09
David Crow11-Feb-08 6:09 
GeneralRe: How to add Button to Child Window ? Pin
tina->newcoder11-Feb-08 6:12
tina->newcoder11-Feb-08 6:12 
GeneralRe: How to add Button to Child Window ? Pin
tina->newcoder11-Feb-08 5:42
tina->newcoder11-Feb-08 5:42 
QuestionRe: How to add Button to Child Window ? Pin
David Crow11-Feb-08 5:47
David Crow11-Feb-08 5:47 
GeneralRe: How to add Button to Child Window ? Pin
tina->newcoder11-Feb-08 6:28
tina->newcoder11-Feb-08 6:28 
QuestionRe: How to add Button to Child Window ? Pin
David Crow11-Feb-08 6:38
David Crow11-Feb-08 6:38 
GeneralRe: How to add Button to Child Window ? Pin
tina->newcoder11-Feb-08 6:49
tina->newcoder11-Feb-08 6:49 
GeneralDllMain implementation Pin
George_George9-Feb-08 23:01
George_George9-Feb-08 23:01 
Generalsmart pointer release Pin
George_George9-Feb-08 22:48
George_George9-Feb-08 22:48 
JokeRe: The Only Way to Approach Smart ... Pin
Chris Meech10-Feb-08 13:02
Chris Meech10-Feb-08 13:02 
GeneralRe: The Only Way to Approach Smart ... Pin
George_George10-Feb-08 19:21
George_George10-Feb-08 19:21 

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.