Is it possible to have a dynamic array size?
For example:
It wont compile but i was wondering if it's possible to achieve that some way.Code:... int size; cout<<"size: "; cin>>size; cin.ignore(); int array[size]; ...
Thanks!
Is it possible to have a dynamic array size?
For example:
It wont compile but i was wondering if it's possible to achieve that some way.Code:... int size; cout<<"size: "; cin>>size; cin.ignore(); int array[size]; ...
Thanks!
"Anyone can aspire to greatness if they try hard enough."
- Me