how to store data in array c++ code example
Example 1: select elements from array C++
double X[100];
for (int i = 0; i < 98; i++) {
X[i+1] = r*X[i]*(1.0-X[i]);
myfile << X[i] << endl;
}
Example 2: arrays in c++
int baz [5] = { };
double X[100];
for (int i = 0; i < 98; i++) {
X[i+1] = r*X[i]*(1.0-X[i]);
myfile << X[i] << endl;
}
int baz [5] = { };