Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing string table from the DLL Pin
abhijitr4-Feb-08 22:06
abhijitr4-Feb-08 22:06 
GeneralRe: Accessing string table from the DLL Pin
Rajkumar R4-Feb-08 23:21
Rajkumar R4-Feb-08 23:21 
AnswerRe: Accessing string table from the DLL Pin
abhijitr5-Feb-08 0:01
abhijitr5-Feb-08 0:01 
Generalcopy CString value to char Pin
Anu_Bala4-Feb-08 18:57
Anu_Bala4-Feb-08 18:57 
GeneralRe: copy CString value to char Pin
Maxwell Chen4-Feb-08 19:01
Maxwell Chen4-Feb-08 19:01 
GeneralRe: copy CString value to char Pin
Parthi_Appu4-Feb-08 19:15
Parthi_Appu4-Feb-08 19:15 
QuestionRe: copy CString value to char Pin
CPallini4-Feb-08 23:10
mveCPallini4-Feb-08 23:10 
Questionhow to get index of minimum of one array Pin
gentleguy4-Feb-08 16:22
gentleguy4-Feb-08 16:22 
dear all

how to get index of minimum of one array? the following is my code...but however the outcome is wrong after compiled...actually the error is corrNum.

fitness[10] is an 10 elements array,first i would like to calculate minimum value of fitness, and then i need to use its index of this minimum value of array,but result is wrong.anyone can help me? thanks a lot.

for (int i=0;i<10;i++)
{
double minValue = fitness[9];
if (fitness[i] <= minValue)
{
minValue = fitness[i];

for (int j=0;j<150;j++)
{
value = h[i][j] - irisIndNew[j];
if (value == 0)

corrNum = corrNum + 1;

}
}
}

Li Zhiyuan


AnswerRe: how to get index of minimum of one array Pin
Steve Echols4-Feb-08 17:30
Steve Echols4-Feb-08 17:30 
GeneralRe: how to get index of minimum of one array Pin
gentleguy4-Feb-08 20:59
gentleguy4-Feb-08 20:59 
AnswerRe: how to get index of minimum of one array Pin
pierre_ribery4-Feb-08 20:54
pierre_ribery4-Feb-08 20:54 
QuestionGet coordinate of mouse click Pin
Kennis4-Feb-08 14:22
Kennis4-Feb-08 14:22 
GeneralRe: Get coordinate of mouse click Pin
Steve Echols4-Feb-08 17:36
Steve Echols4-Feb-08 17:36 
QuestionWhat's the rule for "cleaning" and "rebuilding"...? Pin
@largeinsd4-Feb-08 13:46
@largeinsd4-Feb-08 13:46 
QuestionVS2008 sends to IP 224.0.0.22 ?! Pin
Ingo H. de Boer4-Feb-08 11:41
Ingo H. de Boer4-Feb-08 11:41 
GeneralInput (istream) error testing Pin
hain4-Feb-08 9:15
hain4-Feb-08 9:15 
QuestionRe: Input (istream) error testing Pin
David Crow4-Feb-08 10:14
David Crow4-Feb-08 10:14 
GeneralRe: Input (istream) error testing Pin
gentleguy4-Feb-08 22:14
gentleguy4-Feb-08 22:14 
GeneralRe: Input (istream) error testing Pin
hain5-Feb-08 5:23
hain5-Feb-08 5:23 
GeneralRe: Input (istream) error testing Pin
David Crow5-Feb-08 5:37
David Crow5-Feb-08 5:37 
GeneralRe: Input (istream) error testing Pin
hain6-Feb-08 3:42
hain6-Feb-08 3:42 
GeneralPSM_QUERYSIBLINGS Pin
bob169724-Feb-08 6:25
bob169724-Feb-08 6:25 
GeneralRe: PSM_QUERYSIBLINGS Pin
Mark Salsbery4-Feb-08 6:36
Mark Salsbery4-Feb-08 6:36 
QuestionRe: PSM_QUERYSIBLINGS Pin
bob169724-Feb-08 6:54
bob169724-Feb-08 6:54 
GeneralRe: PSM_QUERYSIBLINGS Pin
Mark Salsbery4-Feb-08 7:09
Mark Salsbery4-Feb-08 7:09 

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.