For (j=6; J<=3; J -=1)
{
P_my_buy_info=p_my_buy_info_bak;
for(i=0; i
If (I.=0)
P_my_buy_info + +;
If (p_my_buy_info - & gt; My_StockRating_Total==0.0000) continue;
if (fabs ((double) j - p_my_buy_info - & gt; My_StockRating_Total) & lt; 1-3) e
{
N_stock_Out2 + +;
If (n_stock_Out2 & lt;
=450){
Strcat (s_tmp2 p_my_buy_info - & gt; My_Code);
Strcat (s_tmp2, "\ n");
}
}
}
}
Here a question is p_my_buy_info - & gt; My_StockRating_Total assignment is through
P_my_buy_info - & gt; My_StockRating_Total=(double) 5;//so assignment
Then there is no loop body, small piles can, however, good headache, mystery
Error or/*
For (j=6; J<=3; J -=1)
{
P_my_buy_info=p_my_buy_info_bak;
for(i=0; i
If (I.=0)
P_my_buy_info + +;
If (p_my_buy_info - & gt; My_StockRating_Total==0.0000) continue;
If (fabs ((double) j - p_my_buy_info - & gt; My_StockRating_Total) & lt; 1 e - 3)
{
N_stock_Out2 + +;
If (n_stock_Out2 & lt;
=450){
Strcat (s_tmp2 p_my_buy_info - & gt; My_Code);
Strcat (s_tmp2, "\ n");
}
}
}
}
*/
P_my_buy_info=p_my_buy_info_bak;
for(i=0; i
If (I.=0)
P_my_buy_info + +;
If (p_my_buy_info - & gt; My_StockRating_Total==0.0000) continue;
If (p_my_buy_info - & gt; My_StockRating_Total==6.0000)
{
N_stock_Out2 + +;
If (n_stock_Out2 & lt;
=450){
Strcat (s_tmp2 p_my_buy_info - & gt; My_Code);
Strcat (s_tmp2, "\ n");
}
}
}
P_my_buy_info=p_my_buy_info_bak;
for(i=0; i
If (I.=0)
P_my_buy_info + +;
If (p_my_buy_info - & gt; My_StockRating_Total==0.0000) continue;
If (p_my_buy_info - & gt; My_StockRating_Total==5.0000)
{
N_stock_Out2 + +;
If (n_stock_Out2 & lt;
=450){
Strcat (s_tmp2 p_my_buy_info - & gt; My_Code);
Strcat (s_tmp2, "\ n");
}
}
}
P_my_buy_info=p_my_buy_info_bak;
for(i=0; i
If (I.=0)
P_my_buy_info + +;
If (p_my_buy_info - & gt; My_StockRating_Total==0.0000) continue;
If (p_my_buy_info - & gt; My_StockRating_Total==4.0000)
{
N_stock_Out2 + +;
If (n_stock_Out2 & lt;
=450){
Strcat (s_tmp2 p_my_buy_info - & gt; My_Code);
Strcat (s_tmp2, "\ n");
}
}
}
P_my_buy_info=p_my_buy_info_bak;
for(i=0; i
If (I.=0)
P_my_buy_info + +;
If (p_my_buy_info - & gt; My_StockRating_Total==0.0000) continue;
If (p_my_buy_info - & gt; My_StockRating_Total==3.0000)
{
N_stock_Out2 + +;
If (n_stock_Out2 & lt;
=450){
Strcat (s_tmp2 p_my_buy_info - & gt; My_Code);
Strcat (s_tmp2, "\ n");
}
}
}
This can come out the correct result, why? Error so big?
For help,