memory leak in the code?

This is a discussion on memory leak in the code? within the C++ Programming forums, part of the General Programming Boards category; I just want to learn in what situations using dynamic allocated array is better than using vector? In my experience, ...

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. :-)

Daved and I agree with you.

EDIT:
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).

EDIT:
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).