is this a bug??

 

hello

 

I had wrote this code

however, it behaves strange, the loops should start at zero , but it start at 68 (loop with index i). any help on this ?!

 

regards

 

 

#property copyright "Abc" #property link "" int SetupsCount =80; int PercentageCount =6; int SetupLevels =16; //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- PrintPercentageArray(); //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- //---- return(0); } //+------------------------------------------------------------------+ void PrintPercentageArray() { int i,j,k; for (k=0; k<PercentageCount;k++) { for (i=0; i<SetupsCount;i++) { for (j=0; j<SetupLevels; j++) { Print(i," ",j," ",k); } } } }
 
Open log file and see your results in the log not in journal tab
Reason: