Dynamic memory of double array

Below is the dynamic memory of a single array from your tutorial, can you tell how to define for a double array? Tks
===========================================
// rememb-o-matic
#include <iostream>
#include <new>
using namespace std;

int main ()
{
int i,n;
int * p;
cout << "How many numbers would you like to type? ";
cin >> i;
p= new (nothrow) int[i];
if (p == 0)
cout << "Error: memory could not be allocated";
else
{
for (n=0; n<i; n++)
{
cout << "Enter number: ";
cin >> p[n];
}
cout << "You have entered: ";
for (n=0; n<i; n++)
cout << p[n] << ", ";
delete[] p;
}
return 0;
}
Is a "double array" an array of doubles or a 2D array?
btw, this article should help you:
http://www.cplusplus.com/forum/articles/7459/
Tks. It helps very much.
Topic archived. No new replies allowed.