Daved and I agree with you.Quote:
I just want to learn in what situations using dynamic allocated array is better than using vector? In my experience, I always think vector is better than dynamic allocated array for a couple of reasons. :-)
Consequently, the only situation when using a dynamically allocated array is better than using a vector is when you cannot use a vector for some reason. Such reasons range from the dictates of a professor/teacher or management to the limitations of the compiler that you have to use (which again could be due to the whim of a professor or management).