Click here to Skip to main content
16,021,181 members

Comments by CrouchingViper (Top 5 by date)

CrouchingViper 18-Jul-12 6:47am View    
How can I carry something like the following:

for (int i=0; i<lines.Count(); i++)
{
float[] averages = new float[lines.Count()];
*****averages[i] = Average of the ith row;
}
CrouchingViper 18-Jul-12 6:23am View    
I'm sorry if I am being dumb here, but, if I want to say append average of row1 to av[1] and average of row2 to av[2], how would I go about doing that?

When I ran the above code, the numberOfRows and numberOfValues were wrong.
CrouchingViper 18-Jul-12 6:05am View    
If I want the average of say, Rows 1-3 stored in another array, How am I to do it?
CrouchingViper 18-Jul-12 5:52am View    
Here you are converting to Int64 type. Is there a conversion for float?
CrouchingViper 18-Jul-12 5:45am View    
I am not able to get the number or rows as arrays. Also I'm struggling to find the size of the array without first parsing all the elements.