#include #include using namespace std; int main() { cout << "How many ints do you want to store? "; size_t n {0}; cin >> n; int *const p {new int[n]}; //p will always point to the same place. for (size_t i {0}; i < n; ++i) { cout << "Please input int number " << i << ": "; cin >> p[i]; } cout << "Here are the ints that you input:\n"; for (size_t i {0}; i < n; ++i) { cout << i << ": " << p[i] << "\n"; } delete[] p; //Square brackets to delete an array. return EXIT_SUCCESS; }