From: edmore m. <edm...@ya...> - 2006-04-30 08:38:25
|
i am writing a program where i want one of my tasks is to call values from an n sized array in batches of 100 values to be used as single values in another array. 1. how do i call the values until i reach the end of the array when i do not know the size of the array. 2. how do i get only the values in the first dimension of the array, that is i tobe put into surface 1 with values for the 2nd dimension being left out, where surface1 is given by the summation of the first valuees of array tempa, that is values from i, surface is given by values of the summation of the power of values incremented by j surface1 = surface1 + pow(tempa[i][j], 2);//surface1 summation surface = surface + pow(tempa[i][j], 2);//surface2 summation denominator = surface1*surface; enumerator = enumerator + (tempa[i][j]*tempa[i][j]);//summation of surface1 *surface2 |