need help with a two dimensional array New comment Forex Trader 2008.12.20 23:58 hi guys, i hope anyone can help me :( look at the code and tell me why the program prints the value '0' for speicher[i,1] to speicher[i,3]? cant i declare any spot of the array with the expressions before? int speicher[][]; while (period>0) { hammer=Close[period]-Close[period+1]; fisch=Close[period+1]-Close[period+2]; speicher[i,1] = i; speicher[i,2]=hammer; speicher[i,3]={fisch}; Print(speicher[i,1]); //these Print(speicher[i,2]); //lines Print(speicher[i,3]); //i mean Print("Hammer="+hammer+" mit Fisch="+fisch); period=period-1;i=i+1;} thanks if u can help :) Need Help--whats wrong with my code? False iRSI readings Most frequent range of numbers in an array. New comment
hi guys, i hope anyone can help me :(
look at the code and tell me why the program prints the value '0' for speicher[i,1] to speicher[i,3]?
cant i declare any spot of the array with the expressions before?
int speicher[][];
while (period>0)
{
hammer=Close[period]-Close[period+1];
fisch=Close[period+1]-Close[period+2];
speicher[i,1] = i;
speicher[i,2]=hammer;
speicher[i,3]={fisch};
Print(speicher[i,1]); //these
Print(speicher[i,2]); //lines
Print(speicher[i,3]); //i mean
Print("Hammer="+hammer+" mit Fisch="+fisch);
period=period-1;i=i+1;}
thanks if u can help :)