Click here to Skip to main content
15,940,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing the exe icon Pin
Hamid_RT27-Jan-08 20:42
Hamid_RT27-Jan-08 20:42 
Generalplus arrays Pin
gentleguy27-Jan-08 2:25
gentleguy27-Jan-08 2:25 
dear friend

what problem is following calculation? thanks
here gbest is a 3x4 array
for (int i =0;i<10;i++)
{
for (int j = 0;j<3;j++)
{
for (int k = 0;k<4;k++)

v[i][j][k] = w*v[i][j][k] + c1*rand()(pbestArray[i][j][k]-x[i][j][k]) + c2*rand()(gbest-x[i][j][k]);
x[i][j][k] = x[i][j][k] + v[i][j][k];
}
}

computer showed me:
error C2064: term does not evaluate to a function taking 1 arguments
error C2112: '-' : pointer subtraction requires integral or pointer operand

Li Zhiyuan

5/10/2006

GeneralRe: plus arrays Pin
Joan M27-Jan-08 2:43
professionalJoan M27-Jan-08 2:43 
GeneralRe: plus arrays Pin
fd012900227-Jan-08 17:06
fd012900227-Jan-08 17:06 
GeneralFlick problem caused by Invalidate in OnMouseMove Pin
followait27-Jan-08 1:39
followait27-Jan-08 1:39 
QuestionRe: Flick problem caused by Invalidate in OnMouseMove Pin
Mark Salsbery27-Jan-08 7:30
Mark Salsbery27-Jan-08 7:30 
GeneralRe: Flick problem caused by Invalidate in OnMouseMove Pin
followait27-Jan-08 16:51
followait27-Jan-08 16:51 
GeneralRe: Flick problem caused by Invalidate in OnMouseMove Pin
Mark Salsbery27-Jan-08 19:15
Mark Salsbery27-Jan-08 19:15 
Generalabout exception specification Pin
George_George26-Jan-08 22:33
George_George26-Jan-08 22:33 
GeneralRe: about exception specification Pin
Maxwell Chen27-Jan-08 18:33
Maxwell Chen27-Jan-08 18:33 
GeneralRe: about exception specification Pin
George_George27-Jan-08 18:41
George_George27-Jan-08 18:41 
GeneralRe: about exception specification Pin
Maxwell Chen27-Jan-08 18:53
Maxwell Chen27-Jan-08 18:53 
GeneralRe: about exception specification Pin
George_George27-Jan-08 19:05
George_George27-Jan-08 19:05 
GeneralRe: about exception specification Pin
Hamid_RT27-Jan-08 20:39
Hamid_RT27-Jan-08 20:39 
GeneralRe: about exception specification Pin
George_George27-Jan-08 20:43
George_George27-Jan-08 20:43 
GeneralRe: about exception specification Pin
Hamid_RT27-Jan-08 20:48
Hamid_RT27-Jan-08 20:48 
GeneralRe: about exception specification Pin
George_George27-Jan-08 20:51
George_George27-Jan-08 20:51 
GeneralRe: about exception specification Pin
Hamid_RT27-Jan-08 21:08
Hamid_RT27-Jan-08 21:08 
GeneralRe: about exception specification Pin
George_George27-Jan-08 21:12
George_George27-Jan-08 21:12 
GeneralRe: about exception specification Pin
Hamid_RT28-Jan-08 2:00
Hamid_RT28-Jan-08 2:00 
GeneralRe: about exception specification Pin
George_George28-Jan-08 13:39
George_George28-Jan-08 13:39 
Generalbad_alloc in new Pin
George_George26-Jan-08 22:12
George_George26-Jan-08 22:12 
GeneralRe: bad_alloc in new Pin
Hamid_RT27-Jan-08 20:37
Hamid_RT27-Jan-08 20:37 
GeneralRe: bad_alloc in new Pin
George_George27-Jan-08 20:47
George_George27-Jan-08 20:47 
QuestionHow do you put a "FLOAT" number into a dialog's editbox? Pin
Larry Mills Sr26-Jan-08 11:32
Larry Mills Sr26-Jan-08 11:32 

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.