need help in arrays

hello...i'm currently a third year highschool student...and i was wondering if anyone can help me on how to use arrays and utilizing them in fstreams...i'm currently doing my case study and i'm stuck since i still don't have any idea on how to use arrays...our teacher didn't teach us about them, and others just self-studied...i just don't know how to deal with arrays...can anyone help me?

const int array_size = 10; // const because Nick Evan says so :)
float floatArray[array_size]; // this is how we make an array
floatArray[0] = 4.2; // this is how we access the first element in the array
for(int i = 0; i <= array_size-1; i++)
{
floatArray[i] = i*2.56; // how we dynamically set values in all elements in the array.
} // note that i said array_size minus one. Thats because the index number for the last element will always be one less than the array size, because the indexing starts at 0 instead of 1.

A normal array cannot be dynamically changed, so if you make an array of 10, and suddenly want it to hold 11, then you have to make a whole new array and copy the original data to it.

You can redetermine the size of an array like this:

float bigArray[x]; // x, because we don't know the size of the array.
array_size = sizeof(bigArray)/sizeof(float); // we take the size of the array, and divide with the size of a single float. Leaves us with the number of floats in the array.

what compiler are you using? MinGW and G++ have the option "-pedantic" to ensure ISO C++ standard. It should give you a error like "ISO C++ forbids variable size array"
Visual studio has -w4 as option to ensure that you comply with the ISO standard.

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...