Is it possible to have a dynamic array size?

For example:
Code:
...
int size;
cout<<"size: ";
cin>>size;
cin.ignore();
int array[size];
...
It wont compile but i was wondering if it's possible to achieve that some way.


Thanks!