// array1.cpp #include using namespace std; int main() { int i, n; double *d; //pointer for array of doubles cout << "How mnay elements are in the array ? "; cin >> n; d = new double[n]; for (i = 0; i < n; ++i){ cout <<"Enter number " << i << ": "; cin >> d[i]; } for (i = 0; i < n; ++i){ cout << d[i] << "\t"; } delete [] d; return 0; }